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