Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6b53fd28 authored by longyu.huang's avatar longyu.huang
Browse files

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
parent e8d735c7
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -236,9 +236,11 @@ public class ImageWallpaper extends WallpaperService {
                    Log.d(TAG, "Visibility changed to visible=" + visible);
                }
                mVisible = visible;
                if (visible) {
                    drawFrame();
                }
            }
        }

        @Override
        public void onTouchEvent(MotionEvent event) {