Skip to content

Commit a07d047

Browse files
Amith YamasaniAndroid (Google) Code Review
authored andcommitted
Merge "Don't clean up wallpaper map entry when stopping a user." into jb-mr1-dev
2 parents 0572827 + 0c29371 commit a07d047

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

services/java/com/android/server/WallpaperManagerService.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -466,10 +466,13 @@ public void onReceive(Context context, Intent intent) {
466466
if (Intent.ACTION_USER_REMOVED.equals(action)) {
467467
onRemoveUser(intent.getIntExtra(Intent.EXTRA_USER_HANDLE,
468468
UserHandle.USER_NULL));
469-
} else if (Intent.ACTION_USER_STOPPING.equals(action)) {
470-
onStoppingUser(intent.getIntExtra(Intent.EXTRA_USER_HANDLE,
471-
UserHandle.USER_NULL));
472469
}
470+
// TODO: Race condition causing problems when cleaning up on stopping a user.
471+
// Comment this out for now.
472+
// else if (Intent.ACTION_USER_STOPPING.equals(action)) {
473+
// onStoppingUser(intent.getIntExtra(Intent.EXTRA_USER_HANDLE,
474+
// UserHandle.USER_NULL));
475+
// }
473476
}
474477
}, userFilter);
475478

0 commit comments

Comments
 (0)