Merge "Fix a NPE in InputMonitor#updateInputFocusRequest" into udc-dev am: 6979ba4278
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23160490 Change-Id: Ib116649197c5e1fc19ce4a96ac58ac87d07b8660 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -439,7 +439,9 @@ final class InputMonitor {
|
|||||||
? mDisplayContent.getImeInputTarget().getActivityRecord() : null;
|
? mDisplayContent.getImeInputTarget().getActivityRecord() : null;
|
||||||
if (app != null) {
|
if (app != null) {
|
||||||
mDisplayContent.removeImeSurfaceImmediately();
|
mDisplayContent.removeImeSurfaceImmediately();
|
||||||
mDisplayContent.mAtmService.takeTaskSnapshot(app.getTask().mTaskId);
|
if (app.getTask() != null) {
|
||||||
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user