diff options
| author | 2017-05-01 18:51:35 +0000 | |
|---|---|---|
| committer | 2017-05-01 18:51:35 +0000 | |
| commit | 40e6925859cbdaf20120068d2156c63f712ea3ab (patch) | |
| tree | 412c5e4a8455a640f3e18931f9dfd43f6018a6b3 | |
| parent | e13d60764cc90406c75bf1641c9d5a7cc3e265ea (diff) | |
| parent | f12a157531b8eca91fdc40b4ccd03737346d2037 (diff) | |
Merge "Fixed that snooze options were animating" into oc-dev
am: f12a157531
Change-Id: Iaf33f16e0dabb0ca56b890a404500a01d26e579d
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/NotificationSnooze.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationSnooze.java b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationSnooze.java index ccc99c59e510..8b3d6d9b7021 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationSnooze.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationSnooze.java @@ -145,13 +145,15 @@ public class NotificationSnooze extends LinearLayout } private void showSnoozeOptions(boolean show) { - mExpanded = show; - animateSnoozeOptions(show); int drawableId = show ? com.android.internal.R.drawable.ic_collapse_notification : com.android.internal.R.drawable.ic_expand_notification; mExpandButton.setImageResource(drawableId); - if (mGutsContainer != null) { - mGutsContainer.onHeightChanged(); + if (mExpanded != show) { + mExpanded = show; + animateSnoozeOptions(show); + if (mGutsContainer != null) { + mGutsContainer.onHeightChanged(); + } } } |