summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java
diff options
context:
space:
mode:
authorMatt Pietal <mpietal@google.com>2021-05-13 13:08:33 -0400
committerMatt Pietal <mpietal@google.com>2021-05-13 16:19:46 -0400
commitb40d4b485777176d9670a4445ecc1237165c8150 (patch)
treedf78dd9af36d606810286f4528994d270bf0c205 /packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java
parentc15af1085c64bf288da84c87560fe2f40944bd65 (diff)
Smartspace - Animate vertically with clock change
When the large clock appears, move smartspace up to take the place of the small clock. Reverse that when notifications appear and the small clock shows up. Animate the large clock weight on appear. Fixes: 185301988 Test: manual (swipe away notifications) Change-Id: Ic293cebad4e7a5311c024a4d9cdc7b206689fde7
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java')
-rw-r--r--packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java
index baf34589770c..4245fbc2c3cd 100644
--- a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java
+++ b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java
@@ -185,6 +185,8 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS
lp = (RelativeLayout.LayoutParams) nic.getLayoutParams();
lp.addRule(RelativeLayout.BELOW, mSmartspaceView.getId());
nic.setLayoutParams(lp);
+
+ mView.setSmartspaceView(mSmartspaceView);
}
}
@@ -220,7 +222,9 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS
* Set whether or not the lock screen is showing notifications.
*/
public void setHasVisibleNotifications(boolean hasVisibleNotifications) {
- mView.setHasVisibleNotifications(hasVisibleNotifications);
+ if (mView.willSwitchToLargeClock(hasVisibleNotifications)) {
+ mLargeClockViewController.animateAppear();
+ }
}
/**