mirror of
https://github.com/MetaCubeX/ClashMetaForAndroid.git
synced 2024-11-22 21:36:09 +03:00
fix: profile crash
This commit is contained in:
parent
f675392143
commit
de6311c698
@ -74,16 +74,16 @@
|
|||||||
android:textSize="12sp"
|
android:textSize="12sp"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:visibility="@{profile.download ==0 ? View.GONE : View.VISIBLE}"
|
android:visibility="@{profile.download <2 ? View.GONE : View.VISIBLE}"
|
||||||
android:text='@{profile.download >0 ?I18nKt.toBytesString(profile.download+profile.upload)+"/" :""}'
|
android:text='@{profile.download >1 ?I18nKt.toBytesString(profile.download+profile.upload)+"/" :""}'
|
||||||
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1" />
|
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:textSize="12sp"
|
android:textSize="12sp"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:visibility="@{profile.download ==0 ? View.GONE : View.VISIBLE}"
|
android:visibility="@{profile.download <2 ? View.GONE : View.VISIBLE}"
|
||||||
android:text='@{profile.download >0 ?I18nKt.toBytesString(profile.total) : ""}'
|
android:text='@{profile.total >1 ?I18nKt.toBytesString(profile.total) : ""}'
|
||||||
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1" />
|
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
<TextView
|
<TextView
|
||||||
@ -98,8 +98,8 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:max="1000"
|
android:max="1000"
|
||||||
android:visibility="@{profile.download==0 ? View.GONE : View.VISIBLE}"
|
android:visibility="@{profile.total < 2 ? View.GONE : View.VISIBLE}"
|
||||||
android:progress="@{profile.download>0 ?I18nKt.toProgress ((profile.download+profile.upload)/(profile.total/1000)) :0}"
|
android:progress="@{profile.total>1 ?I18nKt.toProgress ((profile.download+profile.upload)/(profile.total/1000)) :0}"
|
||||||
/>
|
/>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user