Revert "Revert "Binder.restoreCallingIdentity moved from 'catch' to 'finally' block.""

This reverts commit a6573a641c.

Reason for revert: Reverting the revert, since it wasn't the culprit

Change-Id: I76a92f4a4fad3c1880d8767f91fd5c47631d5069
This commit is contained in:
Yasin Kilicdere
2022-11-25 19:16:30 +00:00
committed by Android (Google) Code Review
parent a6573a641c
commit 3c62958824

View File

@@ -1549,8 +1549,9 @@ public class WallpaperManagerService extends IWallpaperManager.Stub
try {
mReply.sendResult(null);
} catch (RemoteException e) {
Binder.restoreCallingIdentity(ident);
Slog.d(TAG, "failed to send callback!", e);
} finally {
Binder.restoreCallingIdentity(ident);
}
mReply = null;
}