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

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

Solved notification overlay issue once and for all

But...
Once and for all!

Bug: 18314177
Change-Id: I484bea7d9f183d749fcdfba899d40292245f353d
parent 72e32fd5
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2002,6 +2002,9 @@ public class NotificationStackScrollLayout extends ViewGroup
        mStackScrollAlgorithm.onExpansionStopped();
        if (!mIsExpanded) {
            mOwnScrollY = 0;

            // lets make sure nothing is in the overlay anymore
            getOverlay().clear();
        }
    }

+5 −0
Original line number Diff line number Diff line
@@ -794,6 +794,11 @@ public class StackStateAnimator {
                        mHostLayout.getOverlay().remove(changingView);
                    }
                });
            }  else if (event.animationType ==
                NotificationStackScrollLayout.AnimationEvent.ANIMATION_TYPE_REMOVE_SWIPED_OUT) {
                // A race condition can trigger the view to be added to the overlay even though
                // it is swiped out. So let's remove it
                mHostLayout.getOverlay().remove(changingView);
            }
            mNewEvents.add(event);
        }