Be considerate for those without the resource allocations
This commit is contained in:
parent
a0260c0d97
commit
95c6a1cc18
|
@ -358,6 +358,10 @@ public class InputModFragment extends Fragment {
|
|||
Bitmap resizedBitmap = Bitmap.createBitmap(image, x, y, 64, 64,
|
||||
matrix, true);
|
||||
BitmapDrawable bmd = new BitmapDrawable(resizedBitmap);
|
||||
image.recycle();
|
||||
image = null;
|
||||
bitmap.close();
|
||||
bitmap = null;
|
||||
return bmd;
|
||||
} catch (IOException e1) {
|
||||
e1.printStackTrace();
|
||||
|
|
Loading…
Reference in New Issue