Added custom dialog for download location only

This commit is contained in:
Viktor De Pasquale
2019-07-17 17:28:01 +02:00
committed by John Wu
parent e83f40d5c5
commit f6045bf8b5
4 changed files with 85 additions and 7 deletions
@@ -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() }
}