mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2024-11-10 01:01:56 +01:00
fix: Only set Android key if not null to prevent build errors
This commit is contained in:
parent
e362071505
commit
1181b0bca2
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue