Merge "Ensure wm is fetched on the shell thread" into sc-qpr1-dev am: 938b7d01f5 am: 412d4be7a7 am: db58395205
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15881354 Change-Id: I78bd3aad3da89ffd518de7151a5b35cfa6f25f2c
This commit is contained in:
@@ -315,13 +315,13 @@ public class PipController implements PipTransitionController.PipTransitionCallb
|
||||
mOneHandedController = oneHandedController;
|
||||
mPipTransitionController = pipTransitionController;
|
||||
mTaskStackListener = taskStackListener;
|
||||
mPipInputConsumer = new PipInputConsumer(WindowManagerGlobal.getWindowManagerService(),
|
||||
INPUT_CONSUMER_PIP, mainExecutor);
|
||||
//TODO: move this to ShellInit when PipController can be injected
|
||||
mMainExecutor.execute(this::init);
|
||||
}
|
||||
|
||||
public void init() {
|
||||
mPipInputConsumer = new PipInputConsumer(WindowManagerGlobal.getWindowManagerService(),
|
||||
INPUT_CONSUMER_PIP, mMainExecutor);
|
||||
mPipTransitionController.registerPipTransitionCallback(this);
|
||||
mPipTaskOrganizer.registerOnDisplayIdChangeCallback((int displayId) -> {
|
||||
mPipBoundsState.setDisplayId(displayId);
|
||||
|
||||
Reference in New Issue
Block a user