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

Commit a5a205ea authored by Gokul Swami's avatar Gokul Swami
Browse files

CI is might fail due to lack of translations

parent 9c1b38e3
Loading
Loading
Loading
Loading
+0 −17
Original line number Diff line number Diff line
@@ -100,21 +100,4 @@ public class Utils {
    static String getAppVersion() {
        return BuildConfig.VERSION_NAME;
    }

    public static Bitmap getBitmapFromVectorDrawable(Context context, int drawableId) {
        Drawable drawable = ContextCompat.getDrawable(context, drawableId);
        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
            drawable = (DrawableCompat.wrap(drawable)).mutate();
        }

        Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(),
                drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);
        Canvas canvas = new Canvas(bitmap);
        drawable.setBounds(0, 0, canvas.getWidth(), canvas.getHeight());
        drawable.draw(canvas);

        return bitmap;
    }


}