From de6311c6986b2c971d1b986b4ed89da703445413 Mon Sep 17 00:00:00 2001 From: metacubex Date: Sun, 18 Dec 2022 17:01:48 +0800 Subject: [PATCH] fix: profile crash --- design/src/main/res/layout/adapter_profile.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/design/src/main/res/layout/adapter_profile.xml b/design/src/main/res/layout/adapter_profile.xml index 5d592680..421d00de 100644 --- a/design/src/main/res/layout/adapter_profile.xml +++ b/design/src/main/res/layout/adapter_profile.xml @@ -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" />