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

Commit 35ebc79b authored by Miranda Kephart's avatar Miranda Kephart Committed by Android (Google) Code Review
Browse files

Merge "Ensure screenshot input monitor is always removed"

parents 9fef807c 02de5054
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -776,6 +776,10 @@ public class ScreenshotController {
            }
            mWindowManager.removeViewImmediate(decorView);
        }
        // Ensure that we remove the input monitor
        if (mScreenshotView != null) {
            mScreenshotView.stopInputListening();
        }
    }

    /**
+1 −1
Original line number Diff line number Diff line
@@ -314,7 +314,7 @@ public class ScreenshotView extends FrameLayout implements
                });
    }

    private void stopInputListening() {
    void stopInputListening() {
        if (mInputMonitor != null) {
            mInputMonitor.dispose();
            mInputMonitor = null;