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
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user