Use MD3 divider in ControllerActivity

This commit is contained in:
lynxnb 2023-03-09 23:26:20 +01:00 committed by Niccolò Betto
parent 236b754559
commit ab553c9671
2 changed files with 2 additions and 2 deletions

View File

@ -234,8 +234,6 @@ class ControllerActivity : AppCompatActivity() {
}
}
}
dividerItemDecoration.drawable.let { it?.setTint(obtainStyledAttributes(intArrayOf(R.attr.colorOutlineVariant)).use { attr -> attr.getColor(0, Color.BLACK) }); it }
binding.controllerList.addItemDecoration(dividerItemDecoration)
update()

View File

@ -43,6 +43,8 @@
<item name="preferenceFragmentCompatStyle">@style/App.PreferenceFragment.Material</item>
<!-- Override the default switch preference style to use the MD3 switch -->
<item name="switchPreferenceCompatStyle">@style/App.Preference.SwitchPreferenceCompat.Material3</item>
<!-- Override the default divider used by DividerItemDecoration -->
<item name="android:listDivider">@drawable/preference_list_divider_m3</item>
</style>
<style name="AppTheme" parent="BaseAppTheme">