Add PDF in OpenAs dialog & libpdfviewer dialog crash fix
This commit is contained in:
parent
fd0296f801
commit
ed0b5eb483
@ -8,6 +8,7 @@ class OpenAsDialogAdapter(context: Context, showOpenWithExternalApp: Boolean) :
|
|||||||
listOf("image", R.string.image, R.drawable.icon_file_image),
|
listOf("image", R.string.image, R.drawable.icon_file_image),
|
||||||
listOf("video", R.string.video, R.drawable.icon_file_video),
|
listOf("video", R.string.video, R.drawable.icon_file_video),
|
||||||
listOf("audio", R.string.audio, R.drawable.icon_file_audio),
|
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)
|
listOf("text", R.string.text, R.drawable.icon_file_text)
|
||||||
)
|
)
|
||||||
init {
|
init {
|
||||||
|
@ -16,4 +16,5 @@
|
|||||||
<color name="itemSelected">#66666666</color>
|
<color name="itemSelected">#66666666</color>
|
||||||
<color name="playerDoubleTapTouch">#18FFFFFF</color>
|
<color name="playerDoubleTapTouch">#18FFFFFF</color>
|
||||||
<color name="playerDoubleTapBackground">#20EEEEEE</color>
|
<color name="playerDoubleTapBackground">#20EEEEEE</color>
|
||||||
|
<color name="dialogDarkBackground">#333333</color>
|
||||||
</resources>
|
</resources>
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
<style name="DarkGreenDialog" parent="Theme.AppCompat.Dialog.Alert">
|
<style name="DarkGreenDialog" parent="Theme.AppCompat.Dialog.Alert">
|
||||||
<item name="colorAccent">@color/secondary</item>
|
<item name="colorAccent">@color/secondary</item>
|
||||||
<item name="android:background">#333333</item>
|
<item name="android:background">@color/dialogDarkBackground</item>
|
||||||
</style>
|
</style>
|
||||||
<style name="DarkRedDialog" parent="DarkGreenDialog">
|
<style name="DarkRedDialog" parent="DarkGreenDialog">
|
||||||
<item name="colorAccent">@color/red</item>
|
<item name="colorAccent">@color/red</item>
|
||||||
|
@ -226,4 +226,5 @@
|
|||||||
<string name="copy_external_volume">Make a hidden copy</string>
|
<string name="copy_external_volume">Make a hidden copy</string>
|
||||||
<string name="copy_volume_notification">Copying volume…</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="hidden_volume_already_exists">A hidden volume with the same name already exists.</string>
|
||||||
|
<string name="pdf_document">PDF document</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
<item name="android:textColor">@color/textColor</item>
|
<item name="android:textColor">@color/textColor</item>
|
||||||
<item name="colorAccent">@color/secondary</item>
|
<item name="colorAccent">@color/secondary</item>
|
||||||
<item name="colorPrimary">@color/primary</item>
|
<item name="colorPrimary">@color/primary</item>
|
||||||
|
<item name="colorSurface">@color/dialogDarkBackground</item>
|
||||||
<item name="android:statusBarColor">@color/primary</item>
|
<item name="android:statusBarColor">@color/primary</item>
|
||||||
<item name="infoBarBackgroundColor">#111111</item>
|
<item name="infoBarBackgroundColor">#111111</item>
|
||||||
<item name="buttonBackgroundColor">#5B5A5C</item>
|
<item name="buttonBackgroundColor">#5B5A5C</item>
|
||||||
|
Loading…
Reference in New Issue
Block a user