Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-12-18 11:41:30 +01:00
parent e0f096b8d8
commit 7ad9657c4f
No known key found for this signature in database
GPG key ID: 4E577DC593B59BDF
3 changed files with 5 additions and 4 deletions

View file

@ -47,7 +47,8 @@ class RecommendedFilesAdapter(
holder.binding.run { holder.binding.run {
name.text = item.name 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 val file = storageManager.getFileByLocalId(item.id) ?: return

View file

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

View file

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