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

Commit 4948a474 authored by Robert Snoeberger's avatar Robert Snoeberger
Browse files

Revert "Check that ViewTreeObserver is alive before unregistering listener."

This reverts commit b274079f.

Reason for revert: Suspected as cause of app startup performance regression. Running the performance tests locally is taking more time than expected, so I'm reverting while I'm waiting.

Bug: 117611397
Change-Id: I2f78bbc68cdc5e5a19b740a986396d3cad4e574c
parent b274079f
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -435,9 +435,7 @@ public class NotificationShelf extends ActivatableNotificationView implements
                        public boolean onPreDraw() {
                            boolean animatingY = ViewState.isAnimatingY(icon);
                            if (!animatingY) {
                                if (observer.isAlive()) {
                                observer.removeOnPreDrawListener(this);
                                }
                                icon.setTag(TAG_CONTINUOUS_CLIPPING, null);
                                return true;
                            }
@@ -454,9 +452,7 @@ public class NotificationShelf extends ActivatableNotificationView implements
                @Override
                public void onViewDetachedFromWindow(View v) {
                    if (v == icon) {
                        if (observer.isAlive()) {
                        observer.removeOnPreDrawListener(predrawListener);
                        }
                        icon.setTag(TAG_CONTINUOUS_CLIPPING, null);
                    }
                }