Remove deprecate APIs
This commit is contained in:
parent
84f1e78660
commit
ba1a2fbce4
@ -8,6 +8,4 @@ interface Navigator {
|
|||||||
//TODO Elevate Fragment to MagiskFragment<*,*> once everything is on board with it
|
//TODO Elevate Fragment to MagiskFragment<*,*> once everything is on board with it
|
||||||
val baseFragments: List<KClass<out Fragment>>
|
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.extensions.startAnimations
|
||||||
import com.topjohnwu.magisk.model.events.SnackbarEvent
|
import com.topjohnwu.magisk.model.events.SnackbarEvent
|
||||||
import com.topjohnwu.magisk.model.events.ViewEvent
|
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.model.navigation.Navigator
|
||||||
import com.topjohnwu.magisk.ui.theme.Theme
|
import com.topjohnwu.magisk.ui.theme.Theme
|
||||||
import kotlin.reflect.KClass
|
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)
|
protected fun ViewEvent.dispatchOnSelf() = onEventDispatched(this)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user