1
0
Fork 0
mirror of https://github.com/mihonapp/mihon.git synced 2025-03-24 22:59:02 +03:00

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

Only set the dialog title if not already set in the extension.
This commit is contained in:
Alessandro Jean 2023-08-19 17:47:20 -03:00 committed by GitHub
parent d1c956401c
commit eeeaae4570
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -147,7 +147,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
}