You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
Optimize network status display
This commit is contained in:
@@ -108,7 +108,7 @@
|
||||
<Space
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/l1"
|
||||
gone="@{!Info.hasGMS && !viewModel.showUninstall}" />
|
||||
gone="@{!viewModel.showSafetyNet && !viewModel.showUninstall}" />
|
||||
|
||||
<Button
|
||||
style="@style/WidgetFoundation.Button.Outlined"
|
||||
@@ -120,7 +120,7 @@
|
||||
android:textAllCaps="false"
|
||||
android:textSize="12sp"
|
||||
android:onClick="@{() -> viewModel.onSafetyNetPressed()}"
|
||||
gone="@{!Info.hasGMS}"
|
||||
gone="@{!viewModel.showSafetyNet}"
|
||||
app:cornerRadius="@dimen/r1"
|
||||
app:icon="@drawable/ic_safetynet_md2" />
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@
|
||||
|
||||
<TextView
|
||||
style="@style/W.Home.ItemContent.Right"
|
||||
android:text="@{viewModel.isConnected ? viewModel.magiskRemoteVersion : @string/not_available}"
|
||||
android:text="@{viewModel.loadFailed ? @string/not_available : viewModel.magiskRemoteVersion }"
|
||||
tools:text="20.1 (12345)" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@@ -121,7 +121,7 @@
|
||||
|
||||
<TextView
|
||||
style="@style/W.Home.ItemContent.Right"
|
||||
android:text="@{viewModel.isConnected ? viewModel.managerRemoteVersion : @string/not_available}"
|
||||
android:text="@{viewModel.loadFailed ? @string/not_available : viewModel.managerRemoteVersion}"
|
||||
tools:text="8.0.0 (123) (10)" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
Reference in New Issue
Block a user