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

Commit 440f3871 authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android (Google) Code Review
Browse files

Merge "Fix issue #6921726: Prime: Cannot make or receive phone calls..." into jb-mr1-dev

parents 7c927b1b f1c0aeda
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -778,7 +778,8 @@ public abstract class Drawable {
        // to the compatibility density only to have them scaled back up when
        // drawn to the screen.
        if (opts == null) opts = new BitmapFactory.Options();
        opts.inScreenDensity = res.getDisplayMetrics().noncompatDensityDpi;
        opts.inScreenDensity = res != null
                ? res.getDisplayMetrics().noncompatDensityDpi : DisplayMetrics.DENSITY_DEVICE;
        Bitmap  bm = BitmapFactory.decodeResourceStream(res, value, is, pad, opts);
        if (bm != null) {
            byte[] np = bm.getNinePatchChunk();