Loading packages/SystemUI/src/com/android/systemui/wallpapers/ImageWallpaper.java +8 −2 Original line number Diff line number Diff line Loading @@ -210,8 +210,14 @@ public class ImageWallpaper extends WallpaperService { if (DEBUG) { Log.i(TAG, "onSurfaceDestroyed"); } mLongExecutor.execute(this::onSurfaceDestroyedSynchronized); } private void onSurfaceDestroyedSynchronized() { synchronized (mLock) { mSurfaceHolder = null; } } @Override public void onSurfaceCreated(SurfaceHolder holder) { Loading Loading @@ -241,7 +247,7 @@ public class ImageWallpaper extends WallpaperService { private void drawFrameInternal() { if (mSurfaceHolder == null) { Log.e(TAG, "attempt to draw a frame without a valid surface"); Log.i(TAG, "attempt to draw a frame without a valid surface"); return; } Loading Loading
packages/SystemUI/src/com/android/systemui/wallpapers/ImageWallpaper.java +8 −2 Original line number Diff line number Diff line Loading @@ -210,8 +210,14 @@ public class ImageWallpaper extends WallpaperService { if (DEBUG) { Log.i(TAG, "onSurfaceDestroyed"); } mLongExecutor.execute(this::onSurfaceDestroyedSynchronized); } private void onSurfaceDestroyedSynchronized() { synchronized (mLock) { mSurfaceHolder = null; } } @Override public void onSurfaceCreated(SurfaceHolder holder) { Loading Loading @@ -241,7 +247,7 @@ public class ImageWallpaper extends WallpaperService { private void drawFrameInternal() { if (mSurfaceHolder == null) { Log.e(TAG, "attempt to draw a frame without a valid surface"); Log.i(TAG, "attempt to draw a frame without a valid surface"); return; } Loading