Skip to content

Commit 6f76311

Browse files
committed
Fix SingleChoiceDialogPreference using wrong summary
1 parent f682e4a commit 6f76311

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: library/src/main/java/de/Maxr1998/modernpreferences/preferences/choice/SingleChoiceDialogPreference.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class SingleChoiceDialogPreference(key: String, items: List<SelectionItem>) : Ab
4040
val selection = currentSelection
4141
return when {
4242
selection == null -> super.resolveSummary(context)
43-
selection.titleRes != -1 -> context.resources.getText(titleRes)
43+
selection.titleRes != -1 -> context.resources.getText(selection.titleRes)
4444
else -> selection.title
4545
}
4646
}

0 commit comments

Comments
 (0)