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

Commit 7cb9ee86 authored by Ching-Sung Li's avatar Ching-Sung Li
Browse files

Fix blank bottom action bar when setting Grid after unlock screen

Post the wallpaper preview setup to message queue of UI thread to
prevent race condition in layout of Grid fragment's bottom action bar.

Bug: 170795716
Test: Manual
Change-Id: I5b94ac71424aebf6bf7a1833ed00de22ad91b2d6
parent ef48bf5c
Loading
Loading
Loading
Loading
+27 −25
Original line number Diff line number Diff line
@@ -148,6 +148,7 @@ public class WallpaperPreviewer implements LifecycleObserver {
    private void setUpWallpaperPreview() {
        ImageView homeImageWallpaper = mWallpaperSurfaceCallback.getHomeImageWallpaper();
        if (mWallpaper != null && homeImageWallpaper != null) {
            homeImageWallpaper.post(() -> {
                boolean renderInImageWallpaperSurface = !(mWallpaper instanceof LiveWallpaperInfo);
                mWallpaper.getThumbAsset(mActivity.getApplicationContext())
                        .loadPreviewImage(mActivity,
@@ -176,6 +177,7 @@ public class WallpaperPreviewer implements LifecycleObserver {
                                mWallpaperColorsListener::onWallpaperColorsChanged);
                    }
                }
            });
        }
    }