Skip to content

Commit

Permalink
Replacing RGB_565 with ARGB_8888
Browse files Browse the repository at this point in the history
To avoid funny gradients
  • Loading branch information
kopiro committed Apr 5, 2017
1 parent 50b0eee commit c802047
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -318,7 +318,7 @@ public Bitmap getBitmap(boolean needRetry, boolean densityScaled)
BitmapFactory.Options opts = new BitmapFactory.Options();
opts.inInputShareable = true;
opts.inPurgeable = true;
opts.inPreferredConfig = Bitmap.Config.RGB_565;
opts.inPreferredConfig = Bitmap.Config.ARGB_8888;
if (densityScaled) {
DisplayMetrics dm = new DisplayMetrics();
dm.setToDefaults();
Expand Down

0 comments on commit c802047

Please sign in to comment.