OSDN Git Service

Close all open views when binding the Launcher.
authorJon Miranda <jonmiranda@google.com>
Tue, 21 Feb 2017 20:37:51 +0000 (12:37 -0800)
committerJon Miranda <jonmiranda@google.com>
Tue, 21 Feb 2017 20:37:51 +0000 (12:37 -0800)
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

src/com/android/launcher3/Launcher.java

index 14b9c82..624ea4a 100644 (file)
@@ -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