Report when a restored live wallpaper isn't available.
Bug: 133738847 Test: Backup from a device with a non-bundled live wallpaper, restore to a new device and confirm the error message is displayed. Change-Id: Ia67023923a1235be850914341d2dac129e3b36c2
This commit is contained in:
@@ -238,8 +238,11 @@ public class WallpaperBackupAgent extends BackupAgent {
|
||||
mWm.clear(FLAG_LOCK);
|
||||
}
|
||||
} else {
|
||||
if (DEBUG) {
|
||||
Slog.v(TAG, "Can't use wallpaper service " + wpService);
|
||||
// If we've restored a live wallpaper, but the component doesn't exist,
|
||||
// we should log it as an error so we can easily identify the problem
|
||||
// in reports from users
|
||||
if (wpService != null) {
|
||||
Slog.e(TAG, "Wallpaper service " + wpService + " isn't available.");
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
|
||||
Reference in New Issue
Block a user