Merge "End Taskbar animator before other cleanup" into sc-dev am: 4c26664d84
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13824312 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ic4b779d2cdacc31739a21d8e3bb25fb2819a3493
This commit is contained in:
commit
0923bd5b2a
1 file changed
+5
-4
@@ -246,6 +246,11 @@ public class TaskbarController {
|
||||
* Removes the Taskbar from the screen, and removes any obsolete listeners etc.
|
||||
*/
|
||||
public void cleanup() {
|
||||
if (mAnimator != null) {
|
||||
// End this first, in case it relies on properties that are about to be cleaned up.
|
||||
mAnimator.end();
|
||||
}
|
||||
|
||||
mTaskbarView.cleanup();
|
||||
mTaskbarContainerView.cleanup();
|
||||
removeFromWindowManager();
|
||||
@@ -253,10 +258,6 @@ public class TaskbarController {
|
||||
mTaskbarVisibilityController.cleanup();
|
||||
mHotseatController.cleanup();
|
||||
mRecentsController.cleanup();
|
||||
|
||||
if (mAnimator != null) {
|
||||
mAnimator.end();
|
||||
}
|
||||
}
|
||||
|
||||
private void removeFromWindowManager() {
|
||||
|
||||
Reference in new issue
Block a user