Fix camera icon tint bug
This commit is contained in:
parent
c8d266150c
commit
ec348383c6
@ -7,7 +7,7 @@ import android.view.ViewGroup
|
|||||||
import android.widget.BaseAdapter
|
import android.widget.BaseAdapter
|
||||||
import android.widget.ImageView
|
import android.widget.ImageView
|
||||||
import android.widget.TextView
|
import android.widget.TextView
|
||||||
import androidx.appcompat.content.res.AppCompatResources
|
import androidx.core.content.ContextCompat
|
||||||
import sushi.hardcore.droidfs.R
|
import sushi.hardcore.droidfs.R
|
||||||
|
|
||||||
open class IconTextDialogAdapter(private val context: Context): BaseAdapter() {
|
open class IconTextDialogAdapter(private val context: Context): BaseAdapter() {
|
||||||
@ -19,7 +19,7 @@ open class IconTextDialogAdapter(private val context: Context): BaseAdapter() {
|
|||||||
val text = view.findViewById<TextView>(R.id.text)
|
val text = view.findViewById<TextView>(R.id.text)
|
||||||
text.text = context.getString(items[position][1] as Int)
|
text.text = context.getString(items[position][1] as Int)
|
||||||
val icon = view.findViewById<ImageView>(R.id.icon)
|
val icon = view.findViewById<ImageView>(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
|
return view
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user