Commit 5c0e8638 authored by topjohnwu's avatar topjohnwu

Add test button toggle in code

parent 64f5ff54
......@@ -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 */
......
......@@ -30,7 +30,7 @@
<com.google.android.material.button.MaterialButton
android:layout_gravity="center"
style="@style/WidgetFoundation.Button"
gone="@{true}"
gone="@{!viewModel.showTest}"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="@{() -> viewModel.onTestPressed()}"
......
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