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

Commit 8ab08651 authored by Christopher Tate's avatar Christopher Tate
Browse files

Briefly log wallpaper restore outcomes

Bug 17112780

Change-Id: I3e9a23d28c9df4f708eb24b4688322c21a8c8382
parent 4610545d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -141,13 +141,13 @@ public class WallpaperBackupHelper extends FileBackupHelperBase implements Backu
                    if (widthRatio > 0 && widthRatio < 1.33
                            && heightRatio > 0 && heightRatio < 1.33) {
                        // sufficiently close to our resolution; go ahead and use it
                        if (DEBUG) Slog.d(TAG, "wallpaper dimension match; using");
                        Slog.d(TAG, "Applying restored wallpaper image.");
                        f.renameTo(new File(WALLPAPER_IMAGE));
                        // TODO: spin a service to copy the restored image to sd/usb storage,
                        // since it does not exist anywhere other than the private wallpaper
                        // file.
                    } else {
                        if (DEBUG) Slog.d(TAG, "dimensions too far off: wr=" + widthRatio
                        Slog.i(TAG, "Dimensions too far off; using default wallpaper. wr=" + widthRatio
                                + " hr=" + heightRatio);
                        f.delete();
                    }