Address comments from merged "Fix remaining jank in sec..."
Cleanup based on post-merge comments on: I554ddffb7981488fa8a81933842b0c7730e775f3 Bug:7482560 Change-Id: I06b2bc91da9dfddd06db69efb9e7ad45c304f709
This commit is contained in:
@@ -35,7 +35,7 @@ import android.provider.MediaStore;
|
||||
import android.util.Log;
|
||||
import android.view.WindowManager;
|
||||
|
||||
import com.android.internal.policy.impl.keyguard.KeyguardSecurityCallback.OnDismissAction;
|
||||
import com.android.internal.policy.impl.keyguard.KeyguardHostView.OnDismissAction;
|
||||
import com.android.internal.widget.LockPatternUtils;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -53,7 +53,6 @@ import android.view.animation.AnimationUtils;
|
||||
import android.widget.RemoteViews.OnClickHandler;
|
||||
|
||||
import com.android.internal.R;
|
||||
import com.android.internal.policy.impl.keyguard.KeyguardSecurityCallback.OnDismissAction;
|
||||
import com.android.internal.policy.impl.keyguard.KeyguardSecurityModel.SecurityMode;
|
||||
import com.android.internal.widget.LockPatternUtils;
|
||||
|
||||
@@ -115,6 +114,11 @@ public class KeyguardHostView extends KeyguardViewBase {
|
||||
void userActivity();
|
||||
}
|
||||
|
||||
/*package*/ interface OnDismissAction {
|
||||
/* returns true if the dismiss should be deferred */
|
||||
boolean onDismiss();
|
||||
}
|
||||
|
||||
public KeyguardHostView(Context context) {
|
||||
this(context, null);
|
||||
}
|
||||
|
||||
@@ -15,14 +15,10 @@
|
||||
*/
|
||||
package com.android.internal.policy.impl.keyguard;
|
||||
|
||||
import com.android.internal.policy.impl.keyguard.KeyguardHostView.OnDismissAction;
|
||||
|
||||
public interface KeyguardSecurityCallback {
|
||||
|
||||
/*package*/ interface OnDismissAction {
|
||||
|
||||
/* returns true if the dismiss should be deferred */
|
||||
boolean onDismiss();
|
||||
}
|
||||
|
||||
/**
|
||||
* Dismiss the given security screen.
|
||||
* @param securityVerified true if the user correctly entered credentials for the given screen.
|
||||
|
||||
@@ -567,6 +567,8 @@ public class KeyguardViewMediator {
|
||||
mScreenOn = false;
|
||||
if (DEBUG) Log.d(TAG, "onScreenTurnedOff(" + why + ")");
|
||||
|
||||
mKeyguardDonePending = false;
|
||||
|
||||
// Lock immediately based on setting if secure (user has a pin/pattern/password).
|
||||
// This also "locks" the device when not secure to provide easy access to the
|
||||
// camera while preventing unwanted input.
|
||||
@@ -1226,6 +1228,7 @@ public class KeyguardViewMediator {
|
||||
|
||||
mKeyguardViewManager.show(options);
|
||||
mShowing = true;
|
||||
mKeyguardDonePending = false;
|
||||
updateActivityLockScreenState();
|
||||
adjustStatusBarLocked();
|
||||
userActivity();
|
||||
@@ -1261,6 +1264,7 @@ public class KeyguardViewMediator {
|
||||
|
||||
mKeyguardViewManager.hide();
|
||||
mShowing = false;
|
||||
mKeyguardDonePending = false;
|
||||
updateActivityLockScreenState();
|
||||
adjustStatusBarLocked();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user