Add missing wallpaper service lock.

Unimportant, but found while reading the code for other reasons.

Change-Id: I9f2fad3ff5d081aef7a35e5f33ec5de7dc92195e
This commit is contained in:
Brad Fitzpatrick
2010-09-14 11:30:29 -07:00
parent 13f6270eb1
commit 194b19a4b3

View File

@ -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() {