From 609d09a8e2f0bce7659ce2b6899a21ca2e9fddf4 Mon Sep 17 00:00:00 2001 From: krlvm <51774833+krlvm@users.noreply.github.com> Date: Sun, 28 Mar 2021 15:02:38 +0300 Subject: [PATCH] Remove unused SuggestionListAdapter.resolveResourceIdFromAttr --- .../fragments/list/search/SuggestionListAdapter.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/fragments/list/search/SuggestionListAdapter.java b/app/src/main/java/org/schabi/newpipe/fragments/list/search/SuggestionListAdapter.java index 8e12680bc..952316796 100644 --- a/app/src/main/java/org/schabi/newpipe/fragments/list/search/SuggestionListAdapter.java +++ b/app/src/main/java/org/schabi/newpipe/fragments/list/search/SuggestionListAdapter.java @@ -1,14 +1,12 @@ package org.schabi.newpipe.fragments.list.search; import android.content.Context; -import android.content.res.TypedArray; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; -import androidx.annotation.AttrRes; import androidx.recyclerview.widget.RecyclerView; import org.schabi.newpipe.R; @@ -121,14 +119,6 @@ public class SuggestionListAdapter searchResId = R.drawable.ic_search; } - private static int resolveResourceIdFromAttr(final Context context, - @AttrRes final int attr) { - final TypedArray a = context.getTheme().obtainStyledAttributes(new int[]{attr}); - final int attributeResourceId = a.getResourceId(0, 0); - a.recycle(); - return attributeResourceId; - } - private void updateFrom(final SuggestionItem item) { suggestionIcon.setImageResource(item.fromHistory ? historyResId : searchResId); itemSuggestionQuery.setText(item.query);