File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
policy/src/com/android/internal/policy/impl/keyguard Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -92,8 +92,6 @@ public class KeyguardHostView extends KeyguardViewBase {
9292 private KeyguardSecurityModel mSecurityModel ;
9393 private KeyguardViewStateManager mViewStateManager ;
9494
95- boolean mPersitentStickyWidgetLoaded = false ;
96-
9795 private Rect mTempRect = new Rect ();
9896
9997 private int mDisabledFeatures ;
@@ -1088,7 +1086,7 @@ public void onClick(View v) {
10881086 // We currently disable cameras in safe mode because we support loading 3rd party
10891087 // cameras we can't trust. TODO: plumb safe mode into camera creation code and only
10901088 // inflate system-provided camera?
1091- if (!mSafeModeEnabled && !cameraDisabledByDpm ()
1089+ if (!mSafeModeEnabled && !cameraDisabledByDpm () && mUserSetupCompleted
10921090 && mContext .getResources ().getBoolean (R .bool .kg_enable_camera_default_widget )) {
10931091 View cameraWidget =
10941092 CameraWidgetFrame .create (mContext , mCameraWidgetCallbacks , mActivityLauncher );
You can’t perform that action at this time.
0 commit comments