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

Commit 0347707e authored by Christopher Tate's avatar Christopher Tate Committed by android-build-merger
Browse files

Handle empty/unspecified crop properly in wallpaper restore am: dd7110db am: 2ba91274

am: fbee390c

Change-Id: I497c9254951537b118d6fee81725f303bd37c7a1
parents 539f43c0 fbee390c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -238,7 +238,7 @@ public class WallpaperBackupAgent extends BackupAgent {
                    Slog.v(TAG, "Restored crop hint " + cropHint);
                }
                try (FileInputStream in = new FileInputStream(stage)) {
                    mWm.setStream(in, cropHint, true, which);
                    mWm.setStream(in, cropHint.isEmpty() ? null : cropHint, true, which);
                } finally {} // auto-closes 'in'
            }
        }