Only set the dialog title if not already set in the extension ()

Only set the dialog title if not already set in the extension.

(cherry picked from commit eeeaae4570833e9b94e8fbef13bb5055f518c38f)
This commit is contained in:
Alessandro Jean 2023-08-19 17:47:20 -03:00 committed by Jobobby04
parent 3df6435f4b
commit 3b31442a8f

@ -163,7 +163,7 @@ class SourcePreferencesFragment : PreferenceFragmentCompat() {
sourceScreen.forEach { pref ->
pref.isIconSpaceReserved = false
pref.isSingleLineTitle = false
if (pref is DialogPreference) {
if (pref is DialogPreference && pref.dialogTitle.isNullOrEmpty()) {
pref.dialogTitle = pref.title
}