Skip to content

Commit

Permalink
Set mimetype to avoid a rare Android bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AbandonedCart committed May 13, 2024
1 parent b245698 commit 09230be
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ android {
compileSdk 34
minSdk 19
targetSdk 34
versionName "4.1.8"
versionName "4.1.9"
versionCode = versionName.replace(".","").toInteger() * 10

vectorDrawables {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1399,6 +1399,7 @@ class BrowserActivity : AppCompatActivity(), BrowserSettingsListener,
if (Version.isLollipop) {
if (prefs.isDocumentStorage) {
onDocumentTree.launch(Intent(Intent.ACTION_OPEN_DOCUMENT_TREE)
.setType("*/*")
.putExtra("android.content.extra.SHOW_ADVANCED", true)
.putExtra("android.content.extra.FANCY", true)
)
Expand All @@ -1409,6 +1410,7 @@ class BrowserActivity : AppCompatActivity(), BrowserSettingsListener,
setPositiveButton(this@BrowserActivity.getString(R.string.proceed)) {
onDocumentTree.launch(
Intent(Intent.ACTION_OPEN_DOCUMENT_TREE)
.setType("*/*")
.putExtra("android.content.extra.SHOW_ADVANCED", true)
.putExtra("android.content.extra.FANCY", true)
)
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
maven { url "https://jitpack.io" }
}
dependencies {
classpath 'com.android.tools.build:gradle:8.3.0'
classpath 'com.android.tools.build:gradle:8.3.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.22"

// NOTE: Do not place your application dependencies here; they belong
Expand Down

0 comments on commit 09230be

Please sign in to comment.