Merge "Fixed that snooze options were animating" into oc-dev

This commit is contained in:
Selim Cinek
2017-05-01 18:43:35 +00:00
committed by Android (Google) Code Review

View File

@@ -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();
}
}
}