From 78fcd1fdd117d86407067a11be74976c54e3d00f Mon Sep 17 00:00:00 2001 From: Ishan09811 <156402647+Ishan09811@users.noreply.github.com> Date: Sun, 14 Apr 2024 14:51:46 +0530 Subject: [PATCH] bonk --- .../com/panda3ds/pandroid/app/base/GameAboutDialog.java | 6 +----- 1 file changed, 1 insertion(+), 5 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 109aba5b7..27c292b83 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 @@ -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