From 6b53fd28e5de1ef5263b4cffaf7c5b6d99005e76 Mon Sep 17 00:00:00 2001 From: "longyu.huang" Date: Wed, 6 May 2015 01:46:23 -0700 Subject: [PATCH] optimize wallpaper load,avoid show black wallpaper. [Preconditions] open auto-rotate [Procedures] 1.enter Contacts app, and rotate 90 degrees to the right 2.press power key to lock screen,and unlock 3.rotare 90 degrees to the left and exit Contacts app 4.the wallpaper will be black first,then show the really wallpaper --- .../SystemUI/src/com/android/systemui/ImageWallpaper.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java b/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java index 7c725b32c5ce1..81f6d56926f9e 100644 --- a/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java +++ b/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java @@ -236,7 +236,9 @@ public class ImageWallpaper extends WallpaperService { Log.d(TAG, "Visibility changed to visible=" + visible); } mVisible = visible; - drawFrame(); + if (visible) { + drawFrame(); + } } }