You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
Added back version checking (and version boxes) after transitioning homepage to MVVM
Fixed several errors caused along the way
This commit is contained in:
@@ -1,6 +1,17 @@
|
||||
package com.topjohnwu.magisk.ui.base
|
||||
|
||||
import com.skoumal.teanity.viewmodel.LoadingViewModel
|
||||
import com.topjohnwu.magisk.utils.Event
|
||||
import timber.log.Timber
|
||||
|
||||
|
||||
abstract class MagiskViewModel : LoadingViewModel()
|
||||
abstract class MagiskViewModel : LoadingViewModel(), Event.AutoListener {
|
||||
|
||||
init {
|
||||
Event.register(this)
|
||||
}
|
||||
|
||||
override fun onEvent(event: Int) = Timber.i("Event of $event was not handled")
|
||||
override fun getListeningEvents(): IntArray = intArrayOf()
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user