Refine code style

This commit is contained in:
Mygod
2019-04-05 09:40:28 +08:00
parent 926783cc25
commit 67ef49248d

View File

@@ -2,7 +2,6 @@
<layout <layout
xmlns:android="http://schemas.android.com/apk/res/android"> xmlns:android="http://schemas.android.com/apk/res/android">
<data> <data>
<import type="android.view.View"/>
<variable <variable
name="data" name="data"
type="be.mygod.vpnhotspot.manage.ManageBar.Data"/> type="be.mygod.vpnhotspot.manage.ManageBar.Data"/>
@@ -42,7 +41,7 @@
android:id="@+id/offloadEnabled" android:id="@+id/offloadEnabled"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:visibility="@{data.offloadEnabled ? View.VISIBLE : View.GONE}" android:visibility="@{data.offloadEnabled}"
android:text="@string/tethering_manage_offload_enabled"/> android:text="@string/tethering_manage_offload_enabled"/>
</LinearLayout> </LinearLayout>