Commit ba1a2fbc authored by topjohnwu's avatar topjohnwu

Remove deprecate APIs

parent 84f1e786
......@@ -8,6 +8,4 @@ interface Navigator {
//TODO Elevate Fragment to MagiskFragment<*,*> once everything is on board with it
val baseFragments: List<KClass<out Fragment>>
fun navigateTo(event: MagiskNavigationEvent)
}
......@@ -16,7 +16,6 @@ import com.topjohnwu.magisk.extensions.snackbar
import com.topjohnwu.magisk.extensions.startAnimations
import com.topjohnwu.magisk.model.events.SnackbarEvent
import com.topjohnwu.magisk.model.events.ViewEvent
import com.topjohnwu.magisk.model.navigation.MagiskNavigationEvent
import com.topjohnwu.magisk.model.navigation.Navigator
import com.topjohnwu.magisk.ui.theme.Theme
import kotlin.reflect.KClass
......@@ -78,9 +77,6 @@ abstract class CompatActivity<ViewModel : BaseViewModel, Binding : ViewDataBindi
}
}
@Deprecated("The event is self handled.", level = DeprecationLevel.ERROR)
override fun navigateTo(event: MagiskNavigationEvent) = Unit
protected fun ViewEvent.dispatchOnSelf() = onEventDispatched(this)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment