We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c2f895 commit 6ecf53fCopy full SHA for 6ecf53f
src/main/kotlin/app/revanced/patches/shared/misc/settings/preference/BasePreference.kt
@@ -30,7 +30,7 @@ abstract class BasePreference(
30
*/
31
open fun serialize(ownerDocument: Document, resourceCallback: (BaseResource) -> Unit): Element =
32
ownerDocument.createElement(tag).apply {
33
- setAttribute("android:key", key)
+ key?.let { setAttribute("android:key", it) }
34
setAttribute("android:title", "@string/${titleKey}")
35
summaryKey?.let { addSummary(it) }
36
}
0 commit comments