Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,15 @@ public void loadIcons(final Context context, List<String> uris, ImagesLoadingLis
@NonNull
private Drawable getDrawable(Context context, String source) throws IOException {
Drawable drawable;

if (isLocalFile(Uri.parse(source))) {
drawable = loadFile(source);
} else {
drawable = loadResource(source);
if (drawable == null || NavigationApplication.instance.isDebug()) {
if (drawable == null && NavigationApplication.instance.isDebug()) {
drawable = readJsDevImage(context, source);
}
}

if (drawable == null) throw new RuntimeException("Could not load image " + source);
return drawable;
}

Expand Down