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

Commit 5b9a51cd authored by bohu's avatar bohu
Browse files

Emulator: remove hardcoded isEmulator() logic in ImageWallpaper

Emulator can use host GPU for rendering and supports GLES 2 already.
The isEmulator() logic is not only unnecessary but also causes the
launcher to have black background.

BUG: 33788018
Change-Id: Ib6d942490e8808e202c444f96becec1b75953838
parent 3c4dd649
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -80,11 +80,9 @@ public class ImageWallpaper extends WallpaperService {

        //noinspection PointlessBooleanExpression,ConstantConditions
        if (FIXED_SIZED_SURFACE && USE_OPENGL) {
            if (!isEmulator()) {
            mIsHwAccelerated = ActivityManager.isHighEndGfx();
        }
    }
    }

    @Override
    public void onTrimMemory(int level) {
@@ -93,10 +91,6 @@ public class ImageWallpaper extends WallpaperService {
        }
    }

    private static boolean isEmulator() {
        return "1".equals(SystemProperties.get(PROPERTY_KERNEL_QEMU, "0"));
    }

    @Override
    public Engine onCreateEngine() {
        mEngine = new DrawableEngine();