Merge cherrypicks of ['googleplex-android-review.googlesource.com/34290983'] into 25Q3-release.

Change-Id: I8f035726b5ff771291eceb4ca2b4178c7a61ac9c
This commit is contained in:
Android Build Coastguard Worker
2025-07-07 20:35:19 -07:00
@@ -159,6 +159,9 @@ public class TaskbarManagerImpl implements DisplayDecorationListener {
private static final Uri NAV_BAR_KIDS_MODE = Settings.Secure.getUriFor(
Settings.Secure.NAV_BAR_KIDS_MODE);
private static final LooperExecutor TASKBAR_UI_THREAD =
new LooperExecutor("TASKBAR_UI_THREAD", THREAD_PRIORITY_FOREGROUND);
private final Context mBaseContext;
private final int mPrimaryDisplayId;
private final TaskbarNavButtonCallbacks mNavCallbacks;
@@ -172,9 +175,6 @@ public class TaskbarManagerImpl implements DisplayDecorationListener {
private final SimpleBroadcastReceiver mShutdownReceiver;
private final DisplaysWithDecorationsRepositoryCompat mDisplaysWithDecorationsRepositoryCompat;
private final LooperExecutor mPerWindowUiExecutor =
new LooperExecutor("TaskbarUiThread", THREAD_PRIORITY_FOREGROUND);
// The source for this provider is set when Launcher is available
// We use 'non-destroyable' version here so the original provider won't be destroyed
// as it is tied to the activity lifecycle, not the taskbar lifecycle.
@@ -538,7 +538,7 @@ public class TaskbarManagerImpl implements DisplayDecorationListener {
}
public LooperExecutor getPerWindowUiExecutor() {
return mPerWindowUiExecutor;
return TASKBAR_UI_THREAD;
}
private void handleDisplayUpdatesForPerceptibleTasks() {