Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b8027d87 authored by Daniel Sandler's avatar Daniel Sandler
Browse files

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
parent c51451a3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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 -->
+7 −0
Original line number Diff line number Diff line
@@ -716,8 +716,15 @@ 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() {
+1 −0
Original line number Diff line number Diff line
@@ -236,6 +236,7 @@ public class TabletTicker
            WindowManagerImpl.getDefault().removeView(mWindow);
            mWindow = null;
            mWindowShouldClose = false;
            mBar.doneTicking();
        }
    }