From 5c0e86383c6ae5385b13cf8c6af44c59d2f8ba7e Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Fri, 28 Feb 2020 11:53:25 -0800 Subject: [PATCH] Add test button toggle in code --- app/src/main/java/com/topjohnwu/magisk/ui/home/HomeViewModel.kt | 2 ++ app/src/main/res/layout/fragment_home_md2.xml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/ui/home/HomeViewModel.kt b/app/src/main/java/com/topjohnwu/magisk/ui/home/HomeViewModel.kt index d39bfb49f..449083a10 100644 --- a/app/src/main/java/com/topjohnwu/magisk/ui/home/HomeViewModel.kt +++ b/app/src/main/java/com/topjohnwu/magisk/ui/home/HomeViewModel.kt @@ -96,6 +96,8 @@ class HomeViewModel( ensureEnv() } + val showTest = false + fun onTestPressed() = object : ViewEvent(), ActivityExecutor { override fun invoke(activity: BaseActivity) { /* Entry point to trigger test events within the app */ diff --git a/app/src/main/res/layout/fragment_home_md2.xml b/app/src/main/res/layout/fragment_home_md2.xml index 18db61566..f69f07c2b 100644 --- a/app/src/main/res/layout/fragment_home_md2.xml +++ b/app/src/main/res/layout/fragment_home_md2.xml @@ -30,7 +30,7 @@