Add PDF in OpenAs dialog & libpdfviewer dialog crash fix

This commit is contained in:
Matéo Duparc 2022-03-07 11:05:20 +01:00
parent fd0296f801
commit ed0b5eb483
Signed by untrusted user: hardcoresushi
GPG Key ID: AFE384344A45E13A
5 changed files with 5 additions and 1 deletions

View File

@ -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 {

View File

@ -16,4 +16,5 @@
<color name="itemSelected">#66666666</color>
<color name="playerDoubleTapTouch">#18FFFFFF</color>
<color name="playerDoubleTapBackground">#20EEEEEE</color>
<color name="dialogDarkBackground">#333333</color>
</resources>

View File

@ -3,7 +3,7 @@
<style name="DarkGreenDialog" parent="Theme.AppCompat.Dialog.Alert">
<item name="colorAccent">@color/secondary</item>
<item name="android:background">#333333</item>
<item name="android:background">@color/dialogDarkBackground</item>
</style>
<style name="DarkRedDialog" parent="DarkGreenDialog">
<item name="colorAccent">@color/red</item>

View File

@ -226,4 +226,5 @@
<string name="copy_external_volume">Make a hidden copy</string>
<string name="copy_volume_notification">Copying volume…</string>
<string name="hidden_volume_already_exists">A hidden volume with the same name already exists.</string>
<string name="pdf_document">PDF document</string>
</resources>

View File

@ -3,6 +3,7 @@
<item name="android:textColor">@color/textColor</item>
<item name="colorAccent">@color/secondary</item>
<item name="colorPrimary">@color/primary</item>
<item name="colorSurface">@color/dialogDarkBackground</item>
<item name="android:statusBarColor">@color/primary</item>
<item name="infoBarBackgroundColor">#111111</item>
<item name="buttonBackgroundColor">#5B5A5C</item>