Skip to content

Commit

Permalink
Fixed minor issue with LOVE Loader launcher.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuAuahDark committed Nov 15, 2023
1 parent f2970f4 commit 11d9935
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
android:exported="true"
android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|keyboard|keyboardHidden|navigation"
android:label="${NAME}"
android:launchMode="singleTask"
android:launchMode="singleInstance"
android:screenOrientation="${ORIENTATION}"
android:resizeableActivity="false"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
if (android.os.Build.VERSION.SDK_INT < 19) {
Toast.makeText(this, "This activity does not work on Android before KitKat!", Toast.LENGTH_SHORT).show();
finish();
return;
}

final ActivityResultLauncher<String[]> openFileLauncher = registerForActivityResult(
Expand All @@ -49,7 +50,6 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
if (result != null) {
Intent intent = new Intent(SelectorActivity.this, GameActivity.class);
intent.setData(result);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
startActivity(intent);
}

Expand Down

0 comments on commit 11d9935

Please sign in to comment.