mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-06-05 21:49:22 +02:00
Don't fetch file size in thread list
This commit is contained in:
@@ -25,6 +25,7 @@ fun View.setupDocumentPreview(
|
|||||||
filename.text = title
|
filename.text = title
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (attachment) {
|
||||||
try {
|
try {
|
||||||
val size = context.getFileSizeFromUri(uri)
|
val size = context.getFileSizeFromUri(uri)
|
||||||
file_size.beVisible()
|
file_size.beVisible()
|
||||||
@@ -32,6 +33,9 @@ fun View.setupDocumentPreview(
|
|||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
file_size.beGone()
|
file_size.beGone()
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
file_size.beGone()
|
||||||
|
}
|
||||||
|
|
||||||
val textColor = context.getProperTextColor()
|
val textColor = context.getProperTextColor()
|
||||||
val primaryColor = context.getProperPrimaryColor()
|
val primaryColor = context.getProperPrimaryColor()
|
||||||
|
@@ -29,6 +29,7 @@
|
|||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center"
|
||||||
android:layout_marginStart="@dimen/medium_margin"
|
android:layout_marginStart="@dimen/medium_margin"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
@@ -48,6 +49,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:textSize="@dimen/normal_text_size"
|
android:textSize="@dimen/normal_text_size"
|
||||||
|
android:visibility="gone"
|
||||||
tools:text="2.18 KB" />
|
tools:text="2.18 KB" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
Reference in New Issue
Block a user