Merge "Smartspace in wrong position" into sc-dev am: 08ba30a50e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14904456 Change-Id: Idb44a6267d6bbc4beaf38337dbfab74a552c9505
This commit is contained in:
@@ -64,9 +64,10 @@ public class KeyguardClockSwitch extends RelativeLayout {
|
|||||||
private float mDarkAmount;
|
private float mDarkAmount;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Boolean value indicating if notifications are visible on lock screen.
|
* Boolean value indicating if notifications are visible on lock screen. Use null to signify
|
||||||
|
* it is uninitialized.
|
||||||
*/
|
*/
|
||||||
private boolean mHasVisibleNotifications = true;
|
private Boolean mHasVisibleNotifications = null;
|
||||||
|
|
||||||
private AnimatorSet mClockInAnim = null;
|
private AnimatorSet mClockInAnim = null;
|
||||||
private AnimatorSet mClockOutAnim = null;
|
private AnimatorSet mClockOutAnim = null;
|
||||||
@@ -263,7 +264,8 @@ public class KeyguardClockSwitch extends RelativeLayout {
|
|||||||
* the smaller version.
|
* the smaller version.
|
||||||
*/
|
*/
|
||||||
boolean willSwitchToLargeClock(boolean hasVisibleNotifications) {
|
boolean willSwitchToLargeClock(boolean hasVisibleNotifications) {
|
||||||
if (hasVisibleNotifications == mHasVisibleNotifications) {
|
if (mHasVisibleNotifications != null
|
||||||
|
&& hasVisibleNotifications == mHasVisibleNotifications) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
boolean useLargeClock = !hasVisibleNotifications;
|
boolean useLargeClock = !hasVisibleNotifications;
|
||||||
|
|||||||
Reference in New Issue
Block a user