Use RGB_565 for box art to reduce image size in memory

This commit is contained in:
Cameron Gutman 2015-10-10 18:09:51 -07:00
parent f598153818
commit d704e322df

View File

@ -40,6 +40,7 @@ public class DiskAssetLoader {
in = CacheHelper.openCacheFileForInput(cacheDir, "boxart", tuple.computer.uuid.toString(), tuple.app.getAppId() + ".png");
BitmapFactory.Options options = new BitmapFactory.Options();
options.inSampleSize = sampleSize;
options.inPreferredConfig = Bitmap.Config.RGB_565;
bmp = BitmapFactory.decodeStream(in, null, options);
} catch (IOException ignored) {
} finally {