Samples improvements #32

This commit is contained in:
Emux
2017-09-28 20:12:04 +03:00
parent cedf3edc61
commit 02b29c7584
9 changed files with 23 additions and 27 deletions

View File

@@ -1,6 +1,6 @@
/*
* Copyright 2010, 2011, 2012 mapsforge.org
* Copyright 2016 devemux86
* Copyright 2016-2017 devemux86
* Copyright 2017 Longri
*
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
@@ -102,7 +102,7 @@ public final class AndroidGraphics extends CanvasAdapter {
}
public static Bitmap drawableToBitmap(Resources res, int resId) {
return new AndroidBitmap(res.openRawResource(resId));
return drawableToBitmap(res.getDrawable(resId));
}
/**