Merge "Emulator: remove hardcoded isEmulator() logic in ImageWallpaper"
This commit is contained in:
@@ -80,9 +80,7 @@ public class ImageWallpaper extends WallpaperService {
|
||||
|
||||
//noinspection PointlessBooleanExpression,ConstantConditions
|
||||
if (FIXED_SIZED_SURFACE && USE_OPENGL) {
|
||||
if (!isEmulator()) {
|
||||
mIsHwAccelerated = ActivityManager.isHighEndGfx();
|
||||
}
|
||||
mIsHwAccelerated = ActivityManager.isHighEndGfx();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user