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

Commit 82b0bcce authored by Bo Hu's avatar Bo Hu Committed by Android (Google) Code Review
Browse files

Merge "Emulator: remove hardcoded isEmulator() logic in ImageWallpaper"

parents 383ac409 5b9a51cd
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();