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
This commit is contained in:
longyu.huang
2015-05-06 01:46:23 -07:00
parent e8d735c70a
commit 6b53fd28e5

View File

@@ -236,7 +236,9 @@ public class ImageWallpaper extends WallpaperService {
Log.d(TAG, "Visibility changed to visible=" + visible);
}
mVisible = visible;
drawFrame();
if (visible) {
drawFrame();
}
}
}