Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 80cfdbb5 authored by Al Sutton's avatar Al Sutton
Browse files

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
parent 7222f5fe
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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) {