Skip to content
Merged
Show file tree
Hide file tree
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

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -67,23 +67,11 @@ private int getResourceDrawableId(Context context, @Nullable String name) {
}

public @Nullable Drawable getResourceDrawable(Context context, @Nullable String name) {
Drawable otaDrawable = ImageOTAUtils.getResourceDrawable(context, name);

if (otaDrawable != null) {
return otaDrawable;
}

int resId = getResourceDrawableId(context, name);
return resId > 0 ? context.getResources().getDrawable(resId) : null;
}

public Uri getResourceDrawableUri(Context context, @Nullable String name) {
Uri otaUri = ImageOTAUtils.getResourceUri(context, name);

if (otaUri != null) {
return otaUri;
}

int resId = getResourceDrawableId(context, name);
return resId > 0
? new Uri.Builder().scheme(LOCAL_RESOURCE_SCHEME).path(String.valueOf(resId)).build()
Expand Down