From ed0b5eb48332771f16a9f01484abb674ff386ebb Mon Sep 17 00:00:00 2001 From: Hardcore Sushi Date: Mon, 7 Mar 2022 11:05:20 +0100 Subject: [PATCH] Add PDF in OpenAs dialog & libpdfviewer dialog crash fix --- .../java/sushi/hardcore/droidfs/adapters/OpenAsDialogAdapter.kt | 1 + app/src/main/res/values/colors.xml | 1 + app/src/main/res/values/dialog_styles.xml | 2 +- app/src/main/res/values/strings.xml | 1 + app/src/main/res/values/styles.xml | 1 + 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/sushi/hardcore/droidfs/adapters/OpenAsDialogAdapter.kt b/app/src/main/java/sushi/hardcore/droidfs/adapters/OpenAsDialogAdapter.kt index c7f4161..ba6f24d 100644 --- a/app/src/main/java/sushi/hardcore/droidfs/adapters/OpenAsDialogAdapter.kt +++ b/app/src/main/java/sushi/hardcore/droidfs/adapters/OpenAsDialogAdapter.kt @@ -8,6 +8,7 @@ class OpenAsDialogAdapter(context: Context, showOpenWithExternalApp: Boolean) : listOf("image", R.string.image, R.drawable.icon_file_image), listOf("video", R.string.video, R.drawable.icon_file_video), listOf("audio", R.string.audio, R.drawable.icon_file_audio), + listOf("pdf", R.string.pdf_document, R.drawable.icon_file_pdf), listOf("text", R.string.text, R.drawable.icon_file_text) ) init { diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 5b8e4cf..ea0073c 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -16,4 +16,5 @@ #66666666 #18FFFFFF #20EEEEEE + #333333 \ No newline at end of file diff --git a/app/src/main/res/values/dialog_styles.xml b/app/src/main/res/values/dialog_styles.xml index ea0981c..876cecd 100644 --- a/app/src/main/res/values/dialog_styles.xml +++ b/app/src/main/res/values/dialog_styles.xml @@ -3,7 +3,7 @@