Do not immediately perform traversals when executing transition
Such that we don't block the binder client, leading to delays. Test: Cold start app Test: AppTransitionTests Change-Id: If39d679ca2461b2c1b488616149397604b2d0765 Fixes: 78646173
This commit is contained in:
@@ -2691,12 +2691,7 @@ public class WindowManagerService extends IWindowManager.Stub
|
||||
+ " Callers=" + Debug.getCallers(5));
|
||||
if (mAppTransition.isTransitionSet()) {
|
||||
mAppTransition.setReady();
|
||||
final long origId = Binder.clearCallingIdentity();
|
||||
try {
|
||||
mWindowPlacerLocked.performSurfacePlacement();
|
||||
} finally {
|
||||
Binder.restoreCallingIdentity(origId);
|
||||
}
|
||||
mWindowPlacerLocked.requestTraversal();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user