Merge "Integer to int causes null exception" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-04-02 04:00:11 +00:00
committed by Android (Google) Code Review

View File

@@ -1300,8 +1300,9 @@ public class WallpaperManagerService extends IWallpaperManager.Stub
if (callbacks == null) return;
callbacks.broadcast(c -> {
try {
int targetDisplayId =
Integer targetDisplayId =
callbackDisplayIds.get(c.asBinder());
if (targetDisplayId == null) return;
if (targetDisplayId == displayId) c.onColorsChanged(area, colors);
} catch (RemoteException e) {
e.printStackTrace();