From d129fb09cd99a8ce623562eb159f9b3c65159c07 Mon Sep 17 00:00:00 2001 From: lynxnb Date: Wed, 17 Aug 2022 12:54:07 +0200 Subject: [PATCH] Android Manifest cleanup * Remove `package` from manifest and from activity prefixes, gradle `namespace` will be used instead * Removed deprecated `android.support.PARENT_ACTIVITY` metadata entries * Make `MainActivity` and `SettingsActivity` launched in `singleTop` mode to avoid unnecessary activity restarts while navigating the app --- app/src/main/AndroidManifest.xml | 50 +++++++++++++------------------- 1 file changed, 20 insertions(+), 30 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index abc1c103..d78bb29c 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,7 +1,6 @@ + xmlns:tools="http://schemas.android.com/tools"> @@ -27,8 +26,9 @@ + android:name=".MainActivity" + android:exported="true" + android:launchMode="singleTop"> @@ -36,49 +36,39 @@ - + android:launchMode="singleTop" + android:parentActivityName=".MainActivity"> - + android:name=".input.ControllerActivity" + android:exported="true" + android:parentActivityName=".SettingsActivity"> - + android:name=".preference.GpuDriverActivity" + android:exported="true" + android:parentActivityName=".SettingsActivity"> - + tools:ignore="LockedOrientationActivity" + android:parentActivityName=".input.ControllerActivity"> - + android:launchMode="singleTask" + android:parentActivityName=".MainActivity"> @@ -114,7 +104,7 @@