Fixed that snooze options were animating
Right after inflation, they would animate. Test: manual Change-Id: I347bcb5a9e483da7e315a83c2a05c6afc2ef3fed Fixes: 37796113
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user