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

Commit 7b73a4c1 authored by Selim Cinek's avatar Selim Cinek
Browse files

Fading out the divider now when removing children

Change-Id: I4466da4f82ae4868c6d0bd023a399c6067a9c3fb
parent 9969559d
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ import android.view.ViewGroup;

import com.android.systemui.R;
import com.android.systemui.ViewInvertHelper;
import com.android.systemui.statusbar.CrossFadeHelper;
import com.android.systemui.statusbar.ExpandableNotificationRow;
import com.android.systemui.statusbar.notification.HybridNotificationView;
import com.android.systemui.statusbar.notification.HybridNotificationViewManager;
@@ -170,8 +171,15 @@ public class NotificationChildrenContainer extends ViewGroup {
        mChildren.remove(row);
        removeView(row);

        View divider = mDividers.remove(childIndex);
        final View divider = mDividers.remove(childIndex);
        removeView(divider);
        getOverlay().add(divider);
        CrossFadeHelper.fadeOut(divider, new Runnable() {
            @Override
            public void run() {
                getOverlay().remove(divider);
            }
        });

        row.setSystemChildExpanded(false);
        updateGroupOverflow();