CameraSettingsActivity.java 文件源码

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

项目:Camera2 作者:
/**
 * Depending on camera availability on the device, this removes settings
 * for cameras the device doesn't have.
 */
private void setVisibilities() {
    PreferenceGroup resolutions =
            (PreferenceGroup) findPreference(PREF_CATEGORY_RESOLUTION);
    if (mPictureSizesBack == null) {
        recursiveDelete(resolutions,
                findPreference(Keys.KEY_PICTURE_SIZE_BACK));
        recursiveDelete(resolutions,
                findPreference(Keys.KEY_VIDEO_QUALITY_BACK));
    }
    if (mPictureSizesFront == null) {
        recursiveDelete(resolutions,
                findPreference(Keys.KEY_PICTURE_SIZE_FRONT));
        recursiveDelete(resolutions,
                findPreference(Keys.KEY_VIDEO_QUALITY_FRONT));
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号