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

Commit 1871b935 authored by Christopher Tate's avatar Christopher Tate Committed by Android (Google) Code Review
Browse files

Merge "Briefly log wallpaper restore outcomes" into lmp-dev

parents 5edb638e 8ab08651
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -141,13 +141,13 @@ public class WallpaperBackupHelper extends FileBackupHelperBase implements Backu
                    if (widthRatio > 0 && widthRatio < 1.33
                    if (widthRatio > 0 && widthRatio < 1.33
                            && heightRatio > 0 && heightRatio < 1.33) {
                            && heightRatio > 0 && heightRatio < 1.33) {
                        // sufficiently close to our resolution; go ahead and use it
                        // 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));
                        f.renameTo(new File(WALLPAPER_IMAGE));
                        // TODO: spin a service to copy the restored image to sd/usb storage,
                        // TODO: spin a service to copy the restored image to sd/usb storage,
                        // since it does not exist anywhere other than the private wallpaper
                        // since it does not exist anywhere other than the private wallpaper
                        // file.
                        // file.
                    } else {
                    } 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);
                                + " hr=" + heightRatio);
                        f.delete();
                        f.delete();
                    }
                    }