mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-06 15:30:46 -05:00
Added basic preferences to settings
This commit is contained in:
@@ -85,4 +85,14 @@ class BackPressEvent : ViewEvent(), ActivityExecutor {
|
||||
}
|
||||
}
|
||||
|
||||
class DieEvent : ViewEvent()
|
||||
class DieEvent : ViewEvent(), ActivityExecutor {
|
||||
override fun invoke(activity: AppCompatActivity) {
|
||||
activity.finish()
|
||||
}
|
||||
}
|
||||
|
||||
class RecreateEvent : ViewEvent(), ActivityExecutor {
|
||||
override fun invoke(activity: AppCompatActivity) {
|
||||
activity.recreate()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user