Use non transitive R classes

This commit is contained in:
sim 2023-08-31 22:26:17 +02:00
parent 6d1285d448
commit 600dec2c69
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ class AppListAdapter(context: Context, private val resource: Int, apps: List<App
} }
if (selectedItemsIds.get(position)) { if (selectedItemsIds.get(position)) {
convertView?.setBackgroundColor( convertView?.setBackgroundColor(
MaterialColors.getColor(convertView, R.attr.colorOnTertiary) MaterialColors.getColor(convertView, com.google.android.material.R.attr.colorOnTertiary)
) )
} else { } else {
convertView?.setBackgroundResource(0) convertView?.setBackgroundResource(0)

View File

@ -21,5 +21,5 @@ android.useAndroidX=true
kotlin.code.style=official kotlin.code.style=official
org.gradle.unsafe.configuration-cache=true org.gradle.unsafe.configuration-cache=true
android.defaults.buildfeatures.buildconfig=true android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false android.nonTransitiveRClass=true
android.nonFinalResIds=false android.nonFinalResIds=false