Skip to content

Commit

Permalink
fix(DialogFragment): fix incorrect style value in list constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutoshgngwr committed May 4, 2020
1 parent f94e6be commit bdeadd3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class DialogFragment : BottomSheetDialogFragment() {
val items = requireContext().resources.getStringArray(itemsRes)
require(currentChoice >= -1 && currentChoice < items.size)
addContentView(
ListView(requireContext(), null, android.R.attr.listViewStyle).apply {
ListView(requireContext(), null, android.R.attr.listViewStyle.resolveAttributeValue()).apply {
id = android.R.id.list
dividerHeight = 0
choiceMode = ListView.CHOICE_MODE_SINGLE
Expand Down

0 comments on commit bdeadd3

Please sign in to comment.