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

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

Merge "Fix binder identity use when clearing wallpapers" into lmp-dev

parents c6bd32e9 ecd827ac
Loading
Loading
Loading
Loading
+24 −22
Original line number Diff line number Diff line
@@ -602,6 +602,7 @@ public class WallpaperManagerService extends IWallpaperManager.Stub {
            f.delete();
        }
        final long ident = Binder.clearCallingIdentity();
        try {
            RuntimeException e = null;
            try {
                wallpaper.imageWallpaperPending = false;
@@ -613,8 +614,6 @@ public class WallpaperManagerService extends IWallpaperManager.Stub {
                }
            } catch (IllegalArgumentException e1) {
                e = e1;
        } finally {
            Binder.restoreCallingIdentity(ident);
            }

            // This can happen if the default wallpaper component doesn't
@@ -629,6 +628,9 @@ public class WallpaperManagerService extends IWallpaperManager.Stub {
                } catch (RemoteException e1) {
                }
            }
        } finally {
            Binder.restoreCallingIdentity(ident);
        }
    }

    public boolean hasNamedWallpaper(String name) {