commit | 01a73f9d0c897a92b163328d26b780d1f337975b | [log] [tgz] |
---|---|---|
author | Selim Cinek <cinek@google.com> | Tue Dec 06 16:13:42 2016 -0800 |
committer | Selim Cinek <cinek@google.com> | Wed Dec 07 17:04:49 2016 -0800 |
tree | 39f6b8ee6769ab20b143b7d0f256732cf3e8f68a | |
parent | 0e39fac3609d5ccb6a399a01e6614a5e94f8b666 [diff] [blame] |
Don't translate the notification content while scrolling While scrolling we don't translate the notification content anymore and only have it while expanding. Test: add notifications, scroll Bug: 32437839 Change-Id: I21037b40ec92c20f2cd775815dcf5d8399348223
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java b/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java index 6650e72..a2c2fd7 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java
@@ -515,7 +515,9 @@ } } else { setIconAppearAmount(visibleState == STATE_ICON ? 1.0f : 0.0f); - setDotAppearAmount(visibleState == STATE_DOT ? 1.0f : 0.0f); + setDotAppearAmount(visibleState == STATE_DOT ? 1.0f + : visibleState == STATE_ICON ? 2.0f + : 0.0f); } } if (!runnableAdded) {