Skip to content

Commit

Permalink
[MapMarker] fix android release crash on custom marker (react-native-…
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcaj authored and patricio committed Sep 27, 2017
1 parent 12600d9 commit 841e249
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.drawable.Animatable;
import android.net.Uri;
Expand Down Expand Up @@ -236,6 +237,9 @@ public void setImage(String uri) {
logoHolder.setController(controller);
} else {
iconBitmapDescriptor = getBitmapDescriptorByName(uri);
if (iconBitmapDescriptor != null) {
iconBitmap = BitmapFactory.decodeResource(getResources(), getDrawableResourceByName(uri));
}
update();
}
}
Expand Down

0 comments on commit 841e249

Please sign in to comment.