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

Commit c424f229 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Fixing Intrinsic dimensions of FastBitmapDrawable

> This was changed initially to allow overriding icon size in case
of PreloadIconDrawable. But the implementation of PreloadIconDrawable
has changed since then and this hack is no longer required.

issue: 15545872
Change-Id: I192056179837f05c5be9e24c3e1251cf7e2a7c8c
parent 1c13ff56
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -113,12 +113,12 @@ class FastBitmapDrawable extends Drawable {

    @Override
    public int getIntrinsicWidth() {
        return getBounds().width();
        return mBitmap.getWidth();
    }

    @Override
    public int getIntrinsicHeight() {
        return getBounds().height();
        return mBitmap.getHeight();
    }

    @Override