From ee3df7c3bf648434ee266c35f555f12603786194 Mon Sep 17 00:00:00 2001 From: Hardcore Sushi Date: Fri, 18 Feb 2022 16:50:08 +0100 Subject: [PATCH] Icon for PDF files --- .../hardcore/droidfs/adapters/ExplorerElementAdapter.kt | 1 + app/src/main/res/drawable/icon_file_pdf.xml | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 app/src/main/res/drawable/icon_file_pdf.xml diff --git a/app/src/main/java/sushi/hardcore/droidfs/adapters/ExplorerElementAdapter.kt b/app/src/main/java/sushi/hardcore/droidfs/adapters/ExplorerElementAdapter.kt index 146668e..2c26e21 100644 --- a/app/src/main/java/sushi/hardcore/droidfs/adapters/ExplorerElementAdapter.kt +++ b/app/src/main/java/sushi/hardcore/droidfs/adapters/ExplorerElementAdapter.kt @@ -161,6 +161,7 @@ class ExplorerElementAdapter( R.drawable.icon_file_video } ConstValues.isText(explorerElement.name) -> R.drawable.icon_file_text + ConstValues.isPDF(explorerElement.name) -> R.drawable.icon_file_pdf ConstValues.isAudio(explorerElement.name) -> R.drawable.icon_file_audio else -> R.drawable.icon_file_unknown } diff --git a/app/src/main/res/drawable/icon_file_pdf.xml b/app/src/main/res/drawable/icon_file_pdf.xml new file mode 100644 index 0000000..44ac738 --- /dev/null +++ b/app/src/main/res/drawable/icon_file_pdf.xml @@ -0,0 +1,9 @@ + + +