Merge "Ensure screenshot input monitor is always removed"
This commit is contained in:
committed by
Android (Google) Code Review
commit
35ebc79baf
@@ -776,6 +776,10 @@ public class ScreenshotController {
|
||||
}
|
||||
mWindowManager.removeViewImmediate(decorView);
|
||||
}
|
||||
// Ensure that we remove the input monitor
|
||||
if (mScreenshotView != null) {
|
||||
mScreenshotView.stopInputListening();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -314,7 +314,7 @@ public class ScreenshotView extends FrameLayout implements
|
||||
});
|
||||
}
|
||||
|
||||
private void stopInputListening() {
|
||||
void stopInputListening() {
|
||||
if (mInputMonitor != null) {
|
||||
mInputMonitor.dispose();
|
||||
mInputMonitor = null;
|
||||
|
||||
Reference in New Issue
Block a user