Merge "Prevent NPE when displaying a missing clock" into tm-qpr-dev am: 4760b7cda3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19492509 Change-Id: I686aea4e3916024ddabc81878195bd00539f4451 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -263,9 +263,10 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS
|
|||||||
|
|
||||||
mCurrentClockSize = clockSize;
|
mCurrentClockSize = clockSize;
|
||||||
|
|
||||||
|
Clock clock = getClock();
|
||||||
boolean appeared = mView.switchToClock(clockSize, animate);
|
boolean appeared = mView.switchToClock(clockSize, animate);
|
||||||
if (animate && appeared && clockSize == LARGE) {
|
if (clock != null && animate && appeared && clockSize == LARGE) {
|
||||||
getClock().getAnimations().enter();
|
clock.getAnimations().enter();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user