Merge "Fix AccessibilityInputFilterTest"
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user