Fix saving logs

Fix #1722
This commit is contained in:
topjohnwu
2019-08-04 14:16:47 -07:00
parent 71d855e836
commit eb5ce5be1e
5 changed files with 21 additions and 15 deletions
@@ -88,7 +88,7 @@ class ModulesFragment : MagiskFragment<ModuleViewModel, FragmentModulesBinding>(
}
private fun selectFile() {
magiskActivity.withExternalRW {
activity.withExternalRW {
onSuccess {
val intent = Intent(Intent.ACTION_GET_CONTENT)
intent.type = "application/zip"
@@ -94,7 +94,7 @@ class ReposFragment : MagiskFragment<ModuleViewModel, FragmentReposBinding>(),
@SuppressLint("MissingPermission")
private fun installModule(item: Repo) {
val context = magiskActivity
val context = activity
fun download(install: Boolean) = context.withExternalRW {
onSuccess {