From ec348383c645c5eac37584b2a1ff867d941001c8 Mon Sep 17 00:00:00 2001 From: Hardcore Sushi Date: Sun, 1 May 2022 16:59:18 +0200 Subject: [PATCH] Fix camera icon tint bug --- .../sushi/hardcore/droidfs/adapters/IconTextDialogAdapter.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/sushi/hardcore/droidfs/adapters/IconTextDialogAdapter.kt b/app/src/main/java/sushi/hardcore/droidfs/adapters/IconTextDialogAdapter.kt index 87ff73f..719e002 100644 --- a/app/src/main/java/sushi/hardcore/droidfs/adapters/IconTextDialogAdapter.kt +++ b/app/src/main/java/sushi/hardcore/droidfs/adapters/IconTextDialogAdapter.kt @@ -7,7 +7,7 @@ import android.view.ViewGroup import android.widget.BaseAdapter import android.widget.ImageView import android.widget.TextView -import androidx.appcompat.content.res.AppCompatResources +import androidx.core.content.ContextCompat import sushi.hardcore.droidfs.R open class IconTextDialogAdapter(private val context: Context): BaseAdapter() { @@ -19,7 +19,7 @@ open class IconTextDialogAdapter(private val context: Context): BaseAdapter() { val text = view.findViewById(R.id.text) text.text = context.getString(items[position][1] as Int) val icon = view.findViewById(R.id.icon) - icon.setImageDrawable(AppCompatResources.getDrawable(context, items[position][2] as Int)) + icon.setImageDrawable(ContextCompat.getDrawable(context, items[position][2] as Int)) return view }