Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c293717 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Don't clean up wallpaper map entry when stopping a user.

Sometimes on quickly stopping and starting a user, a race condition
causes the user entry to disappear, causing crashes in Launcher and
SystemUI. Removing this step, since it doesn't really leave much
residue behind.

Bug: 7434849
Change-Id: Ia188602f1a79f75d307397459c2a03fadee4c722
parent 4bfa1e99
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -466,10 +466,13 @@ class WallpaperManagerService extends IWallpaperManager.Stub {
                if (Intent.ACTION_USER_REMOVED.equals(action)) {
                    onRemoveUser(intent.getIntExtra(Intent.EXTRA_USER_HANDLE,
                            UserHandle.USER_NULL));
                } else if (Intent.ACTION_USER_STOPPING.equals(action)) {
                    onStoppingUser(intent.getIntExtra(Intent.EXTRA_USER_HANDLE,
                            UserHandle.USER_NULL));
                }
                // TODO: Race condition causing problems when cleaning up on stopping a user.
                // Comment this out for now.
                // else if (Intent.ACTION_USER_STOPPING.equals(action)) {
                //     onStoppingUser(intent.getIntExtra(Intent.EXTRA_USER_HANDLE,
                //             UserHandle.USER_NULL));
                // }
            }
        }, userFilter);