Merge "Integer to int causes null exception" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
56d150ed18
@@ -1300,8 +1300,9 @@ public class WallpaperManagerService extends IWallpaperManager.Stub
|
|||||||
if (callbacks == null) return;
|
if (callbacks == null) return;
|
||||||
callbacks.broadcast(c -> {
|
callbacks.broadcast(c -> {
|
||||||
try {
|
try {
|
||||||
int targetDisplayId =
|
Integer targetDisplayId =
|
||||||
callbackDisplayIds.get(c.asBinder());
|
callbackDisplayIds.get(c.asBinder());
|
||||||
|
if (targetDisplayId == null) return;
|
||||||
if (targetDisplayId == displayId) c.onColorsChanged(area, colors);
|
if (targetDisplayId == displayId) c.onColorsChanged(area, colors);
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|||||||
Reference in New Issue
Block a user