diff options
author | Jon Miranda <jonmiranda@google.com> | 2017-02-21 12:37:51 -0800 |
---|---|---|
committer | Jon Miranda <jonmiranda@google.com> | 2017-02-21 12:37:51 -0800 |
commit | 6dc7f1e0003d9a3a13b63170ff295a12d4d985e1 (patch) | |
tree | ef5bcc42c650a2b98fc34e5baa677291cbb6c76a /src/com/android/launcher3 | |
parent | 232f6a3884caf62db3612ea0b42eba6069a79e06 (diff) | |
download | android_packages_apps_Trebuchet-6dc7f1e0003d9a3a13b63170ff295a12d4d985e1.tar.gz android_packages_apps_Trebuchet-6dc7f1e0003d9a3a13b63170ff295a12d4d985e1.tar.bz2 android_packages_apps_Trebuchet-6dc7f1e0003d9a3a13b63170ff295a12d4d985e1.zip |
Close all open views when binding the Launcher.
This fixes a bug where a work profile remains opened even
after the work profile is removed from the device. This can
occur when the work profile is removed with the Folder still opened.
Bug: 35627777
Change-Id: I8d5b4bd9931cad2316b6b8786501d6b3780b7aca
Diffstat (limited to 'src/com/android/launcher3')
-rw-r--r-- | src/com/android/launcher3/Launcher.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index 14b9c8290..624ea4a54 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java @@ -3209,6 +3209,9 @@ public class Launcher extends BaseActivity if (LauncherAppState.PROFILE_STARTUP) { Trace.beginSection("Starting page bind"); } + + AbstractFloatingView.closeAllOpenViews(this); + setWorkspaceLoading(true); // Clear the workspace because it's going to be rebound |