Use the right executor for callbacks in Shell code

Bug: 181814254
Test: atest SystemUITests
Change-Id: I60a196360f9ff435ce99cb5e1d42d3da400d1206
This commit is contained in:
Winson Chung
2021-03-03 17:23:55 -08:00
parent 9fd6bf1188
commit a416ee18a6
2 changed files with 5 additions and 1 deletions

View File

@@ -327,6 +327,10 @@ public class BubbleController {
return mImpl;
}
public ShellExecutor getMainExecutor() {
return mMainExecutor;
}
/**
* Hides the current input method, wherever it may be focused, via InputMethodManagerInternal.
*/

View File

@@ -340,7 +340,7 @@ public class BubbleExpandedView extends LinearLayout {
mSettingsIcon.setVisibility(GONE);
} else {
mTaskView = new TaskView(mContext, mController.getTaskOrganizer());
mTaskView.setListener(mContext.getMainExecutor(), mTaskViewListener);
mTaskView.setListener(mController.getMainExecutor(), mTaskViewListener);
mExpandedViewContainer.addView(mTaskView);
bringChildToFront(mTaskView);
}