Fixing out of order taskbar callbacks

OnCreate can come before onDestroy for a previous activity which can
cause the callbacks for taskbar to get cleared

Bug: 190170303
Test: Presubmit
Change-Id: I48334605384d4604043a50ffc3d137f84575148a
This commit is contained in:
Sunny Goyal
2021-06-18 12:41:22 -07:00
parent 485796e814
commit 6e1ce8ccb8
3 changed files with 19 additions and 8 deletions

View File

@@ -132,7 +132,7 @@ public abstract class BaseQuickstepLauncher extends Launcher
unbindService(mTisBinderConnection);
if (mTaskbarManager != null) {
mTaskbarManager.setLauncher(null);
mTaskbarManager.clearLauncher(this);
}
super.onDestroy();
}