Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 83392021 authored by Garfield Tan's avatar Garfield Tan
Browse files

Remove BROWSE_ROOT intent handling.

This app won't run in Android N or prior anymore.

Bug: 62257354
Change-Id: I7f8ac1bdb5763a31089b7fd2997d0a70b5481ab3
parent b20c3878
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -75,11 +75,6 @@
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.provider.action.BROWSE" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="vnd.android.document/root" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
+1 −3
Original line number Diff line number Diff line
@@ -454,9 +454,7 @@ public class ActionHandler<T extends Activity & Addons> extends AbstractActionHa

    private boolean launchToRoot(Intent intent) {
        String action = intent.getAction();
        // TODO: Remove the "BROWSE" action once our min runtime in O.
        if (Intent.ACTION_VIEW.equals(action)
                || "android.provider.action.BROWSE".equals(action)) {
        if (Intent.ACTION_VIEW.equals(action)) {
            Uri uri = intent.getData();
            if (DocumentsContract.isRootUri(mActivity, uri)) {
                if (DEBUG) Log.d(TAG, "Launching with root URI.");