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

Commit 6e312b9b authored by Marzia Favaro's avatar Marzia Favaro
Browse files

Prevent crash if detachWallpaperLocked is called multiple times

Test: no, minor change
Bug: 242851438
Change-Id: I22b6e60ff4047fcb78624acbb1e30d84bca7df3d
parent a2abc8fb
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -945,7 +945,9 @@ public class WallpaperManagerService extends IWallpaperManager.Stub
            mWindowManagerInternal.removeWindowToken(mToken, false/* removeWindows */,
                    mDisplayId);
            try {
                if (connection.mService != null) {
                    connection.mService.detach(mToken);
                }
            } catch (RemoteException e) {
                Slog.w(TAG, "connection.mService.destroy() threw a RemoteException");
            }