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

Commit e8ea7f61 authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed that snooze options were animating

Right after inflation, they would animate.

Test: manual
Change-Id: I347bcb5a9e483da7e315a83c2a05c6afc2ef3fed
Fixes: 37796113
parent 8f4ac4ac
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -145,15 +145,17 @@ 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 (mExpanded != show) {
            mExpanded = show;
            animateSnoozeOptions(show);
            if (mGutsContainer != null) {
                mGutsContainer.onHeightChanged();
            }
        }
    }

    private void animateSnoozeOptions(boolean show) {
        if (mExpandAnimation != null) {