Skip to content

[RNA][OTAs] Removing ota code #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 14, 2022
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