Merge "Fix IWallpaperEngineWrapper NPE in wearOS" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c9285e0921
@@ -2231,7 +2231,7 @@ public abstract class WallpaperService extends Service {
|
||||
|
||||
mDestroyed = true;
|
||||
|
||||
if (mIWallpaperEngine.mDisplayManager != null) {
|
||||
if (mIWallpaperEngine != null && mIWallpaperEngine.mDisplayManager != null) {
|
||||
mIWallpaperEngine.mDisplayManager.unregisterDisplayListener(mDisplayListener);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user