Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-12-18 11:41:30 +01:00 committed by Alper Öztürk
parent 4b1a30a148
commit bbaa77ab23
3 changed files with 5 additions and 4 deletions

View file

@ -47,7 +47,8 @@ class RecommendedFilesAdapter(
holder.binding.run {
name.text = item.name
timestamp.text = DisplayUtils.getRelativeTimestamp(context, item.timestamp)
val secondsInMillisecond = (item.timestamp * 1000)
timestamp.text = DisplayUtils.getRelativeTimestamp(context, secondsInMillisecond)
val file = storageManager.getFileByLocalId(item.id) ?: return

View file

@ -43,10 +43,8 @@
<TextView
android:id="@+id/recommended_files_title"
android:text="@string/recommended_files_title"
app:drawableStartCompat="@drawable/ic_star"
app:drawableTint="@color/text_color"
android:textSize="@dimen/large_title_text_size"
android:gravity="center|start"
android:drawablePadding="@dimen/standard_half_padding"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="@dimen/standard_padding"

View file

@ -161,4 +161,6 @@
<dimen name="recommended_files_thumbnail_height">120dp</dimen>
<dimen name="recommended_files_layout_width">180dp</dimen>
<dimen name="recommended_files_layout_margin_top">150dp</dimen>
<dimen name="large_title_text_size">22sp</dimen>
</resources>