Merge "Fix AccessibilityInputFilterTest"

This commit is contained in:
Charles Chen
2020-02-10 02:12:48 +00:00
committed by Android (Google) Code Review
2 changed files with 6 additions and 2 deletions

View File

@@ -277,7 +277,7 @@ public final class WindowManagerImpl implements WindowManager {
.setStableInsets(Insets.of(stableInsets))
.setDisplayCutout(displayCutout.get()).build();
} catch (RemoteException e) {
throw e.rethrowFromSystemServer();
}
return null;
}
}

View File

@@ -8021,7 +8021,11 @@ public class WindowManagerService extends IWindowManager.Stub
int displayId, Rect outContentInsets, Rect outStableInsets,
DisplayCutout.ParcelableWrapper displayCutout) {
synchronized (mGlobalLock) {
final DisplayContent dc = mRoot.getDisplayContent(displayId);
final DisplayContent dc = mRoot.getDisplayContentOrCreate(displayId);
if (dc == null) {
throw new WindowManager.InvalidDisplayException("Display#" + displayId
+ "could not be found!");
}
final WindowToken windowToken = dc.getWindowToken(attrs.token);
final ActivityRecord activity;
if (windowToken != null && windowToken.asActivityRecord() != null) {