Merge "Fix a NPE in InputMonitor#updateInputFocusRequest" into udc-dev
This commit is contained in:
@@ -439,8 +439,10 @@ final class InputMonitor {
|
|||||||
? mDisplayContent.getImeInputTarget().getActivityRecord() : null;
|
? mDisplayContent.getImeInputTarget().getActivityRecord() : null;
|
||||||
if (app != null) {
|
if (app != null) {
|
||||||
mDisplayContent.removeImeSurfaceImmediately();
|
mDisplayContent.removeImeSurfaceImmediately();
|
||||||
|
if (app.getTask() != null) {
|
||||||
mDisplayContent.mAtmService.takeTaskSnapshot(app.getTask().mTaskId);
|
mDisplayContent.mAtmService.takeTaskSnapshot(app.getTask().mTaskId);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// Disable IME icon explicitly when IME attached to the app in case
|
// Disable IME icon explicitly when IME attached to the app in case
|
||||||
// IME icon might flickering while swiping to the next app task still
|
// IME icon might flickering while swiping to the next app task still
|
||||||
|
|||||||
Reference in New Issue
Block a user