Add StorageVolume#createOpenDocumentTreeIntent

Change-Id: I6894bad24fa7757dee1028a31ba0b07701baa7b3
Fixes: 119519300
Test: manually using ApiDemos Content > Storage > Documents
This commit is contained in:
Amin Shaikh
2018-11-19 12:33:27 -05:00
parent 3e24ffd208
commit 305e87e6d9
4 changed files with 34 additions and 12 deletions

View File

@@ -67,7 +67,7 @@ public class ExternalStorageProvider extends FileSystemProvider {
private static final boolean DEBUG = false;
public static final String AUTHORITY = "com.android.externalstorage.documents";
public static final String AUTHORITY = DocumentsContract.EXTERNAL_STORAGE_PROVIDER_AUTHORITY;
private static final Uri BASE_URI =
new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT).authority(AUTHORITY).build();
@@ -96,7 +96,8 @@ public class ExternalStorageProvider extends FileSystemProvider {
public boolean reportAvailableBytes = true;
}
private static final String ROOT_ID_PRIMARY_EMULATED = "primary";
private static final String ROOT_ID_PRIMARY_EMULATED =
DocumentsContract.EXTERNAL_STORAGE_PRIMARY_EMULATED_ROOT_ID;
private static final String ROOT_ID_HOME = "home";
private StorageManager mStorageManager;