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

Commit a8119ca0 authored by Jorge Ruesga's avatar Jorge Ruesga Committed by Gerrit Code Review
Browse files

Merge "Show live wallpapers in the recents view on high-end devices" into cm-11.0

parents 956497ec 7a01d0c5
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -114,12 +114,13 @@ public class RecentsActivity extends Activity {
    }

    public static boolean forceOpaqueBackground(Context context) {
        return WallpaperManager.getInstance(context).getWallpaperInfo() != null;
        return WallpaperManager.getInstance(context).getWallpaperInfo() != null
                && !ActivityManager.isHighEndGfx();
    }

    @Override
    public void onStart() {
        // Hide wallpaper if it's not a static image
        // Hide wallpaper if it's not a static image and device is low-end
        if (forceOpaqueBackground(this)) {
            updateWallpaperVisibility(false);
        } else {