Skip to content

Commit

Permalink
try fixing java code
Browse files Browse the repository at this point in the history
  • Loading branch information
CasualPokePlayer committed Nov 23, 2024
1 parent 906b59c commit 40e17b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions android/app/src/main/java/org/psr/gse/GSEActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public static void OpenFileManager()
{
var intent = new Intent(Intent.ACTION_VIEW);
intent.addCategory(Intent.CATEGORY_DEFAULT);
intent.data = DocumentsContract.buildRootUri("$packageName.user", DocumentProvider.ROOT_ID);
intent.setData(DocumentsContract.buildRootUri("$packageName.user", DocumentProvider.ROOT_ID));
intent.setFlags(Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION | Intent.FLAG_GRANT_PREFIX_URI_PERMISSION | Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
mSingleton.startActivity(intent);
return;
Expand All @@ -246,7 +246,7 @@ public static void OpenFileManager()
{
var intent = new Intent("android.provider.action.BROWSE");
intent.addCategory(Intent.CATEGORY_DEFAULT);
intent.data = DocumentsContract.buildRootUri("$packageName.user", DocumentProvider.ROOT_ID);
intent.setData(DocumentsContract.buildRootUri("$packageName.user", DocumentProvider.ROOT_ID));
intent.setFlags(Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION | Intent.FLAG_GRANT_PREFIX_URI_PERMISSION | Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
mSingleton.startActivity(intent);
return;
Expand All @@ -260,7 +260,7 @@ public static void OpenFileManager()
{
var intent = new Intent(Intent.ACTION_MAIN);
intent.setClassName("com.google.android.documentsui", "com.android.documentsui.files.FilesActivity");
intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK;
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
mSingleton.startActivity(intent);
return;
}
Expand All @@ -273,7 +273,7 @@ public static void OpenFileManager()
{
var intent = new Intent(Intent.ACTION_MAIN);
intent.setClassName("com.android.documentsui", "com.android.documentsui.files.FilesActivity");
intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK;
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
mSingleton.startActivity(intent);
return;
}
Expand Down

0 comments on commit 40e17b8

Please sign in to comment.