Skip to content

Commit

Permalink
bonk
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishan09811 authored Apr 14, 2024
1 parent 6ad1f9c commit 78fcd1f
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,7 @@ private void createDocument(@NonNull String mimeType, String fileName, String ou
intent.setType(mimeType);
intent.putExtra(Intent.EXTRA_TITLE, fileName);
intent.putExtra(DocumentsContract.EXTRA_INITIAL_URI, Uri.fromFile(new File(outputDirPath)));
if (context instanceof AppCompatActivity) {
((AppCompatActivity) context).startActivityForResult(intent, 1);
} else {
// Do Nothing
}
startActivityForResult(intent, 1);
}

// Make a shortcut for a specific game
Expand Down

0 comments on commit 78fcd1f

Please sign in to comment.