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