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

Commit beffea1d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

parents bcee6596 4948a474
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -436,9 +436,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;
                            }
@@ -455,9 +453,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);
                    }
                }