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

Commit 3ffced39 authored by Aurélien Pomini's avatar Aurélien Pomini
Browse files

Put logs when setWallpaper is called

Currently, we do have a log (out of DEBUG flag) when a live wallpaper is
set, but not when a static wallpaper is set.

Knowing at least the which flag is helpful for debugging.

Flag: EXEMPT no logical change
Bug: 278261563
Test: presubmit
Change-Id: Ia78d99d5fd7039ef89cf2c4855c3ac001d208d46
parent c87e8755
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3251,8 +3251,9 @@ public class WallpaperManagerService extends IWallpaperManager.Stub
            int[] screenOrientations, List<Rect> crops, boolean allowBackup,
            Bundle extras, int which, IWallpaperManagerCallback completion, int userId) {

        Slog.v(TAG, "setWallpaper: name = " + name + ", which = " + which);
        if (DEBUG) {
            Slog.d(TAG, "setWallpaper: name = " + name + ", callingPackage = " + callingPackage
            Slog.d(TAG, "setWallpaper: callingPackage = " + callingPackage
                    + ", screenOrientations = "
                    + (screenOrientations == null ? null
                            : Arrays.stream(screenOrientations).boxed().toList())