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

Commit a2bd5120 authored by Christopher Tate's avatar Christopher Tate
Browse files

Fix crash in clearWallpaper()

The underlying clearWallpaper() service method demands that only a
single kind of wallpaper be specified as the target; but a recent
patch attempted to expand the client-side legacy method to apply to
all kinds of wallpaper, incorrectly.  This patch corrects that client-
side code to do things properly.

Bug 30456015

Change-Id: I0a881957b881206e5eb775c6879ba90f10f9ffb0
parent dc9c76c3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1393,7 +1393,8 @@ public class WallpaperManager {
     */
    @SystemApi
    public void clearWallpaper() {
        clearWallpaper(FLAG_SYSTEM | FLAG_LOCK, mContext.getUserId());
        clearWallpaper(FLAG_LOCK, mContext.getUserId());
        clearWallpaper(FLAG_SYSTEM, mContext.getUserId());
    }

    /**