Merge "Fix bug where swiping on the fp sensor when the screen is off causes blank screen" into nyc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
538b836e05
@@ -2586,7 +2586,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
|
||||
@Override
|
||||
public void handleSystemNavigationKey(int key) {
|
||||
if (SPEW) Log.d(TAG, "handleSystemNavigationKey: " + key);
|
||||
if (!panelsEnabled()) {
|
||||
if (!panelsEnabled() || !mKeyguardMonitor.isDeviceInteractive()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -112,6 +112,10 @@ public final class KeyguardMonitor extends KeyguardUpdateMonitorCallback {
|
||||
notifyKeyguardChanged();
|
||||
}
|
||||
|
||||
public boolean isDeviceInteractive() {
|
||||
return mKeyguardUpdateMonitor.isDeviceInteractive();
|
||||
}
|
||||
|
||||
private void updateCanSkipBouncerState() {
|
||||
mCanSkipBouncer = mKeyguardUpdateMonitor.getUserCanSkipBouncer(mCurrentUser);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user