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

This commit is contained in:
TreeHugger Robot
2022-11-30 22:51:56 +00:00
committed by Android (Google) Code Review

View File

@@ -1559,8 +1559,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);
}
t.traceEnd();
mReply = null;