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

Commit 3cb8b638 authored by Adam Powell's avatar Adam Powell
Browse files

Fix bug 3362680 - calendar crash while tabbing among views

Remove pending click callbacks when a view is detached from its
window.

Change-Id: I51de184b8e95dbd594675ea6849647586a7c4ba2
parent 05aa0827
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -5118,6 +5118,15 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
        }
    }

    /**
     * Remove the pending click action
     */
    private void removePerformClickCallback() {
        if (mPerformClick != null) {
            removeCallbacks(mPerformClick);
        }
    }

    /**
     * Remove the prepress detection timer.
     */
@@ -7579,6 +7588,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility

        removeUnsetPressCallback();
        removeLongPressCallback();
        removePerformClickCallback();

        destroyDrawingCache();