Improved ticker & bar animations.
The entire notification area fades out quickly before the notification ticker appears, and fades back in when the ticker is totally done. This change has the side-effect of bringing back nice animations for the notification icons when they appear by themselves (at boot and when unlocking the device). Bug: 3293680 Bug: 3018785 Change-Id: Id99cc20e6849f0f037fc9fba076243d362664478
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
android:id="@+id/bar_contents"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:animateLayoutChanges="true"
|
||||
>
|
||||
|
||||
<!-- notification icons & panel access -->
|
||||
|
||||
@@ -716,10 +716,17 @@ public class TabletStatusBar extends StatusBar {
|
||||
if (0 == (mDisabled & (StatusBarManager.DISABLE_NOTIFICATION_ICONS
|
||||
| StatusBarManager.DISABLE_NOTIFICATION_TICKER))) {
|
||||
mTicker.add(key, n);
|
||||
|
||||
mNotificationArea.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// called by TabletTicker when it's done with all queued ticks
|
||||
public void doneTicking() {
|
||||
mNotificationArea.setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
||||
public void animateExpand() {
|
||||
mHandler.removeMessages(MSG_OPEN_NOTIFICATION_PANEL);
|
||||
mHandler.sendEmptyMessage(MSG_OPEN_NOTIFICATION_PANEL);
|
||||
|
||||
@@ -236,6 +236,7 @@ public class TabletTicker
|
||||
WindowManagerImpl.getDefault().removeView(mWindow);
|
||||
mWindow = null;
|
||||
mWindowShouldClose = false;
|
||||
mBar.doneTicking();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user