am 3b9fbd2f: Merge "Fixed a bug with encryption where the keyguard was never shown with PIN" into mnc-dev
* commit '3b9fbd2f2de75e53a836d3cb73bcfc25fdb3a67a': Fixed a bug with encryption where the keyguard was never shown with PIN
This commit is contained in:
@@ -622,9 +622,8 @@ public class KeyguardViewMediator extends SystemUI {
|
|||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
if (DEBUG) Log.d(TAG, "onSystemReady");
|
if (DEBUG) Log.d(TAG, "onSystemReady");
|
||||||
mSystemReady = true;
|
mSystemReady = true;
|
||||||
mUpdateMonitor.registerCallback(mUpdateCallback);
|
|
||||||
|
|
||||||
doKeyguardLocked(null);
|
doKeyguardLocked(null);
|
||||||
|
mUpdateMonitor.registerCallback(mUpdateCallback);
|
||||||
}
|
}
|
||||||
// Most services aren't available until the system reaches the ready state, so we
|
// Most services aren't available until the system reaches the ready state, so we
|
||||||
// send it here when the device first boots.
|
// send it here when the device first boots.
|
||||||
|
|||||||
@@ -200,6 +200,7 @@ public class KeyguardBouncer {
|
|||||||
* notifications on Keyguard, like SIM PIN/PUK.
|
* notifications on Keyguard, like SIM PIN/PUK.
|
||||||
*/
|
*/
|
||||||
public boolean needsFullscreenBouncer() {
|
public boolean needsFullscreenBouncer() {
|
||||||
|
ensureView();
|
||||||
if (mKeyguardView != null) {
|
if (mKeyguardView != null) {
|
||||||
SecurityMode mode = mKeyguardView.getSecurityMode();
|
SecurityMode mode = mKeyguardView.getSecurityMode();
|
||||||
return mode == SecurityMode.SimPin || mode == SecurityMode.SimPuk;
|
return mode == SecurityMode.SimPin || mode == SecurityMode.SimPuk;
|
||||||
|
|||||||
@@ -137,6 +137,12 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener,
|
|||||||
scheduleUpdate();
|
scheduleUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void abortKeyguardFadingOut() {
|
||||||
|
if (mAnimateKeyguardFadingOut) {
|
||||||
|
endAnimateKeyguardFadingOut();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void animateGoingToFullShade(long delay, long duration) {
|
public void animateGoingToFullShade(long delay, long duration) {
|
||||||
mDurationOverride = duration;
|
mDurationOverride = duration;
|
||||||
mAnimationDelay = delay;
|
mAnimationDelay = delay;
|
||||||
@@ -321,17 +327,21 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener,
|
|||||||
mScrimBehind.getViewTreeObserver().removeOnPreDrawListener(this);
|
mScrimBehind.getViewTreeObserver().removeOnPreDrawListener(this);
|
||||||
mUpdatePending = false;
|
mUpdatePending = false;
|
||||||
updateScrims();
|
updateScrims();
|
||||||
mAnimateKeyguardFadingOut = false;
|
|
||||||
mDurationOverride = -1;
|
mDurationOverride = -1;
|
||||||
mAnimationDelay = 0;
|
mAnimationDelay = 0;
|
||||||
|
|
||||||
// Make sure that we always call the listener even if we didn't start an animation.
|
// Make sure that we always call the listener even if we didn't start an animation.
|
||||||
|
endAnimateKeyguardFadingOut();
|
||||||
|
mAnimationStarted = false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void endAnimateKeyguardFadingOut() {
|
||||||
|
mAnimateKeyguardFadingOut = false;
|
||||||
if (!mAnimationStarted && mOnAnimationFinished != null) {
|
if (!mAnimationStarted && mOnAnimationFinished != null) {
|
||||||
mOnAnimationFinished.run();
|
mOnAnimationFinished.run();
|
||||||
mOnAnimationFinished = null;
|
mOnAnimationFinished = null;
|
||||||
}
|
}
|
||||||
mAnimationStarted = false;
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBackDropView(BackDropView backDropView) {
|
public void setBackDropView(BackDropView backDropView) {
|
||||||
|
|||||||
@@ -100,6 +100,7 @@ public class StatusBarKeyguardViewManager {
|
|||||||
public void show(Bundle options) {
|
public void show(Bundle options) {
|
||||||
mShowing = true;
|
mShowing = true;
|
||||||
mStatusBarWindowManager.setKeyguardShowing(true);
|
mStatusBarWindowManager.setKeyguardShowing(true);
|
||||||
|
mScrimController.abortKeyguardFadingOut();
|
||||||
reset();
|
reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user