Skip to content

Commit 6887daa

Browse files
MHShettythestinger
authored andcommitted
Fix reference resolution error for colorPrimary
Post upgrade to 1.13.0 for material components library Uses `R.attr.colorPrimary` present in `androidx.appcompat` over currently removed `com.google.android.material` due to enabling of non-transitive R classes in material component library's build script (https://developer.android.com/build/optimize-your-build#use-non-transitive-r-classes)
1 parent b971be8 commit 6887daa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/app/grapheneos/camera/ui/SettingsDialog.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class SettingsDialog(val mActivity: MainActivity, themedContext: Context) :
8989
private var moreSettingsButton: View
9090

9191
private val tabSelectedColor =
92-
MaterialColors.getColor(binding.root, com.google.android.material.R.attr.colorPrimary)
92+
MaterialColors.getColor(binding.root, androidx.appcompat.R.attr.colorPrimary)
9393

9494
private fun getString(@StringRes id: Int) = mActivity.getString(id)
9595

0 commit comments

Comments
 (0)