Added hiding bottom bar when magisk is not active

This commit is contained in:
Viktor De Pasquale 2020-09-22 16:10:18 +02:00 committed by John Wu
parent f575155a41
commit bf84dd6518

View File

@ -5,6 +5,8 @@
<data> <data>
<import type="com.topjohnwu.magisk.core.Info" />
<variable <variable
name="viewModel" name="viewModel"
type="com.topjohnwu.magisk.ui.MainViewModel" /> type="com.topjohnwu.magisk.ui.MainViewModel" />
@ -65,6 +67,7 @@
<com.google.android.material.card.MaterialCardView <com.google.android.material.card.MaterialCardView
android:id="@+id/main_bottom_bar" android:id="@+id/main_bottom_bar"
style="@style/WidgetFoundation.Card.Elevated" style="@style/WidgetFoundation.Card.Elevated"
gone="@{!Info.env.isActive}"
android:layout_width="224dp" android:layout_width="224dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="bottom|center_horizontal" android:layout_gravity="bottom|center_horizontal"