mirror of
https://github.com/FossifyOrg/File-Manager.git
synced 2026-05-19 06:05:36 -04:00
revert: remove ACTION_OPEN_DOCUMENT handling (#291)
* Revert "feat: handle `ACTION_OPEN_DOCUMENT` intent (#229)"
This reverts commit 986d7d5215.
* style: shorten line
* style: shorten line
This commit is contained in:
@@ -60,14 +60,6 @@
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
</intent-filter>
|
||||
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.OPEN_DOCUMENT" />
|
||||
<data android:mimeType="*/*" />
|
||||
|
||||
<category android:name="android.intent.category.OPENABLE" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
</intent-filter>
|
||||
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.RINGTONE_PICKER" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
|
||||
@@ -365,7 +365,6 @@ class MainActivity : SimpleActivity() {
|
||||
val isPickFileIntent = action == RingtoneManager.ACTION_RINGTONE_PICKER
|
||||
|| action == Intent.ACTION_GET_CONTENT
|
||||
|| action == Intent.ACTION_PICK
|
||||
|| action == Intent.ACTION_OPEN_DOCUMENT
|
||||
val isCreateDocumentIntent = action == Intent.ACTION_CREATE_DOCUMENT
|
||||
|
||||
if (isPickFileIntent) {
|
||||
|
||||
@@ -24,7 +24,6 @@ class ViewPagerAdapter(val activity: SimpleActivity, val tabsToShow: ArrayList<I
|
||||
val isPickRingtoneIntent = activity.intent.action == RingtoneManager.ACTION_RINGTONE_PICKER
|
||||
val isGetContentIntent = activity.intent.action == Intent.ACTION_GET_CONTENT
|
||||
|| activity.intent.action == Intent.ACTION_PICK
|
||||
|| activity.intent.action == Intent.ACTION_OPEN_DOCUMENT
|
||||
val isCreateDocumentIntent = activity.intent.action == Intent.ACTION_CREATE_DOCUMENT
|
||||
val allowPickingMultipleIntent = activity.intent.getBooleanExtra(Intent.EXTRA_ALLOW_MULTIPLE, false)
|
||||
val getContentMimeType = if (isGetContentIntent) {
|
||||
|
||||
Reference in New Issue
Block a user