PodcastsUtils.java 文件源码

java
阅读 45 收藏 0 点赞 0 评论 0

项目:lighthouse 作者:
static boolean hasSplashColors(Context context, Podcast podcast, @Nullable String splashUrl) {
    PodcastsOpenHelper helper = new PodcastsOpenHelper(context, PODCASTS_DATABASE_NAME);
    String[] args = args(podcast.getId());
    try (SQLiteDatabase database = helper.getReadableDatabase(); Cursor cursor = database.rawQuery(PODCAST_COLORS_SELECT_SQL, args)) {
        if (cursor.moveToNext()) {
            return hasColors(cursor, 3, splashUrl);
        }
    }
    return false;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号