private void updateCameraVisibility() { ResolveInfo resolved = mContext .getPackageManager() .resolveActivityAsUser( getCameraIntent(), PackageManager.MATCH_DEFAULT_ONLY, mLockPatternUtils.getCurrentUser()); boolean visible = !isCameraDisabledByDpm() && resolved != null && getResources().getBoolean(R.bool.config_keyguardShowCameraAffordance); mCameraImageView.setVisibility(visible ? View.VISIBLE : View.GONE); }
private void updatePhoneVisibility() { boolean visible = isPhoneVisible(); mPhoneImageView.setVisibility(visible ? View.VISIBLE : View.GONE); }