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:
Al Sutton
2019-05-29 13:46:14 +01:00
parent 7222f5feee
commit 80cfdbb54d

View File

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