Moar refactoring

This commit is contained in:
topjohnwu
2020-08-19 03:27:12 -07:00
parent 1fcf35ebeb
commit 7c319f5fc3
22 changed files with 89 additions and 120 deletions
@@ -15,11 +15,7 @@ import com.topjohnwu.magisk.BR
import com.topjohnwu.magisk.R
import com.topjohnwu.magisk.core.Info
import com.topjohnwu.magisk.core.base.BaseActivity
import com.topjohnwu.magisk.events.BackPressEvent
import com.topjohnwu.magisk.events.PermissionEvent
import com.topjohnwu.magisk.events.SnackbarEvent
import com.topjohnwu.magisk.events.ViewActionEvent
import com.topjohnwu.magisk.model.navigation.NavigationWrapper
import com.topjohnwu.magisk.events.*
import com.topjohnwu.magisk.utils.ObservableHost
import com.topjohnwu.magisk.utils.set
import kotlinx.coroutines.Job
@@ -111,7 +107,7 @@ abstract class BaseViewModel(
}
fun NavDirections.publish() {
_viewEvents.postValue(NavigationWrapper(this))
_viewEvents.postValue(NavigationEvent(this))
}
}