You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
Added custom dialog for download location only
This commit is contained in:
committed by
John Wu
parent
e83f40d5c5
commit
f6045bf8b5
@@ -0,0 +1,12 @@
|
||||
package com.topjohnwu.magisk.model.entity.internal
|
||||
|
||||
import com.skoumal.teanity.util.KObservableField
|
||||
import com.topjohnwu.magisk.Config
|
||||
import com.topjohnwu.magisk.model.observer.Observer
|
||||
|
||||
class DownloadDialogData(initialValue: String) {
|
||||
|
||||
val text = KObservableField(initialValue)
|
||||
val path = Observer(text) { Config.downloadsFile(text.value)?.absolutePath.orEmpty() }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user