Skip to content

Commit

Permalink
Revert "Set mimetype to avoid a rare Android bug"
Browse files Browse the repository at this point in the history
This reverts commit 09230be.
  • Loading branch information
AbandonedCart committed May 26, 2024
1 parent e9242c0 commit 9ea5c55
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 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.9"
versionName "4.2.0"
versionCode = versionName.replace(".","").toInteger() * 10

vectorDrawables {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1404,7 +1404,6 @@ 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 @@ -1415,7 +1414,6 @@ 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

1 comment on commit 9ea5c55

@AbandonedCart
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.OPEN_DOCUMENT_TREE typ=*/* (has extras) }

It appear the intent parsing on the platform side is corrupted.

Please sign in to comment.