mirror of
https://github.com/revanced/revanced-patches
synced 2024-11-19 01:19:22 +01:00
fix: Only set Android key if not null to prevent build errors
This commit is contained in:
parent
e362071505
commit
1181b0bca2
@ -30,7 +30,7 @@ abstract class BasePreference(
|
||||
*/
|
||||
open fun serialize(ownerDocument: Document, resourceCallback: (BaseResource) -> Unit): Element =
|
||||
ownerDocument.createElement(tag).apply {
|
||||
setAttribute("android:key", key)
|
||||
key?.let { setAttribute("android:key", it) }
|
||||
setAttribute("android:title", "@string/${titleKey}")
|
||||
summaryKey?.let { addSummary(it) }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user