Browse Source

Add PDF in OpenAs dialog & libpdfviewer dialog crash fix

master
Hardcore Sushi 4 months ago
parent
commit
ed0b5eb483
Signed by: hardcoresushi
GPG Key ID: AFE384344A45E13A
  1. 1
      app/src/main/java/sushi/hardcore/droidfs/adapters/OpenAsDialogAdapter.kt
  2. 1
      app/src/main/res/values/colors.xml
  3. 2
      app/src/main/res/values/dialog_styles.xml
  4. 1
      app/src/main/res/values/strings.xml
  5. 1
      app/src/main/res/values/styles.xml

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

1
app/src/main/res/values/colors.xml

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

2
app/src/main/res/values/dialog_styles.xml

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

1
app/src/main/res/values/strings.xml

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

1
app/src/main/res/values/styles.xml

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

Loading…
Cancel
Save