summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Lucas Dupin <dupin@google.com> 2018-09-24 15:33:41 -0700
committer Lucas Dupin <dupin@google.com> 2018-09-24 15:33:41 -0700
commitd51863e994987a93cfcebf80410ae388f09a1f3c (patch)
treee7c123d734da9f06edaa2ea92d079a9dc1778a67
parent8750eebfe2ece32f2ed7d8547ac14d464f5de147 (diff)
Revert onSurfaceRedrawNeeded behavior
The wallpaper bitmap will be unloaded after a few seconds to free memory, this means that onSurfaceRedrawNeeded would need to synchronously load an image, which may delay app launches. Test: manually rotate screen Change-Id: Ib4987265e5a1dd113b7cd2c8ea7c9d8f8ce5a8f3 Fixes: 110732172
-rw-r--r--packages/SystemUI/src/com/android/systemui/ImageWallpaper.java6
1 files changed, 0 insertions, 6 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java b/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java
index 77f4bf529f21..408e599bc289 100644
--- a/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java
+++ b/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java
@@ -256,12 +256,6 @@ public class ImageWallpaper extends WallpaperService {
Log.d(TAG, "onSurfaceRedrawNeeded");
}
super.onSurfaceRedrawNeeded(holder);
- // At the end of this method we should have drawn into the surface.
- // This means that the bitmap should be loaded synchronously if
- // it was already unloaded.
- if (mBackground == null) {
- updateBitmap(mWallpaperManager.getBitmap(true /* hardware */));
- }
mSurfaceRedrawNeeded = true;
drawFrame();
}