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

Commit 63cea4ee authored by Garfield Tan's avatar Garfield Tan Committed by Android (Google) Code Review
Browse files

Merge "Remove DocumentsContract.ACTION_BROWSE."

parents b26979f1 5d3b37b9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -435,7 +435,7 @@ public class VolumeInfo implements Parcelable {
            return null;
        }

        final Intent intent = new Intent(DocumentsContract.ACTION_BROWSE);
        final Intent intent = new Intent(Intent.ACTION_VIEW);
        intent.addCategory(Intent.CATEGORY_DEFAULT);
        intent.setDataAndType(uri, DocumentsContract.Root.MIME_TYPE_ITEM);

+0 −3
Original line number Diff line number Diff line
@@ -161,9 +161,6 @@ public final class DocumentsContract {
    /** {@hide} */
    public static final String ACTION_MANAGE_DOCUMENT = "android.provider.action.MANAGE_DOCUMENT";

    /** {@hide} */
    public static final String ACTION_BROWSE = "android.provider.action.BROWSE";

    /** {@hide} */
    public static final String
            ACTION_DOCUMENT_ROOT_SETTINGS = "android.provider.action.DOCUMENT_ROOT_SETTINGS";
+2 −2
Original line number Diff line number Diff line
@@ -46,8 +46,8 @@ public class ReceiverActivity extends Activity {
                final Uri uri = DocumentsContract.buildRootUri(
                        MtpDocumentsProvider.AUTHORITY, deviceRootId);

                final Intent intent = new Intent(DocumentsContract.ACTION_BROWSE);
                intent.setData(uri);
                final Intent intent = new Intent(Intent.ACTION_VIEW);
                intent.setDataAndType(uri, DocumentsContract.Root.MIME_TYPE_ITEM);
                intent.addCategory(Intent.CATEGORY_DEFAULT);
                this.startActivity(intent);
            } catch (IOException exception) {