Add missing wallpaper service lock.
Unimportant, but found while reading the code for other reasons. Change-Id: I9f2fad3ff5d081aef7a35e5f33ec5de7dc92195e
This commit is contained in:
@ -727,9 +727,10 @@ class WallpaperManagerService extends IWallpaperManager.Stub {
|
||||
}
|
||||
}
|
||||
|
||||
// Called by SystemBackupAgent after files are restored to disk.
|
||||
void settingsRestored() {
|
||||
if (DEBUG) Slog.v(TAG, "settingsRestored");
|
||||
|
||||
|
||||
boolean success = false;
|
||||
synchronized (mLock) {
|
||||
loadSettingsLocked();
|
||||
@ -766,7 +767,10 @@ class WallpaperManagerService extends IWallpaperManager.Stub {
|
||||
mName = "";
|
||||
WALLPAPER_FILE.delete();
|
||||
}
|
||||
saveSettingsLocked();
|
||||
|
||||
synchronized (mLock) {
|
||||
saveSettingsLocked();
|
||||
}
|
||||
}
|
||||
|
||||
boolean restoreNamedResourceLocked() {
|
||||
|
Reference in New Issue
Block a user