From 6bfd47271cc3ab8744785028ada55f88051fbb72 Mon Sep 17 00:00:00 2001 From: Ishan09811 <156402647+Ishan09811@users.noreply.github.com> Date: Sun, 14 Apr 2024 14:03:09 +0530 Subject: [PATCH] pain --- .../pandroid/app/base/GameAboutDialog.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/base/GameAboutDialog.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/base/GameAboutDialog.java index 5bcd5d7e8..40a27f9e6 100644 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/base/GameAboutDialog.java +++ b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/base/GameAboutDialog.java @@ -79,15 +79,6 @@ protected void onCreate(Bundle savedInstanceState) { }).start(); }); - private void createDocument(@NonNull String mimeType, String fileName, String outputDirPath) { - Intent intent = new Intent(Intent.ACTION_CREATE_DOCUMENT); - intent.addCategory(Intent.CATEGORY_OPENABLE); - intent.setType(mimeType); - intent.putExtra(Intent.EXTRA_TITLE, fileName); - intent.putExtra(DocumentsContract.EXTRA_INITIAL_URI, Uri.fromFile(new File(outputDirPath))); - startActivityForResult(intent, 1); - } - if (game.getRomPath().startsWith("folder:")) { findViewById(R.id.remove).setVisibility(View.GONE); } else { @@ -101,6 +92,15 @@ private void createDocument(@NonNull String mimeType, String fileName, String ou } } + private void createDocument(@NonNull String mimeType, String fileName, String outputDirPath) { + Intent intent = new Intent(Intent.ACTION_CREATE_DOCUMENT); + intent.addCategory(Intent.CATEGORY_OPENABLE); + intent.setType(mimeType); + intent.putExtra(Intent.EXTRA_TITLE, fileName); + intent.putExtra(DocumentsContract.EXTRA_INITIAL_URI, Uri.fromFile(new File(outputDirPath))); + startActivityForResult(intent, 1); + } + // Make a shortcut for a specific game private void makeShortcut() { Context context = CompatUtils.findActivity(getContext());