Skip to content

Commit 4015c3f

Browse files
John SpurlockAndroid (Google) Code Review
authored andcommitted
Merge "Only show camera widget to setup users." into jb-mr1.1-dev
2 parents 924fc3e + 371f340 commit 4015c3f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)