From 789a2bb394332cc0ba9f9abeec87dab5f9fd1d38 Mon Sep 17 00:00:00 2001 From: Charles Lombardo Date: Fri, 3 Jan 2025 22:40:48 -0500 Subject: [PATCH] Ignore forced use of "nosensor" orientation --- app/src/main/AndroidManifest.xml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index e6f770750..36985190b 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -40,7 +40,8 @@ android:windowSoftInputMode="stateAlwaysHidden|adjustPan" android:screenOrientation="nosensor" android:exported="true" - android:theme="@style/Theme.Camera"> + android:theme="@style/Theme.Camera" + tools:ignore="DiscouragedApi"> @@ -74,7 +75,8 @@ android:showWhenLocked="true" android:excludeFromRecents="true" android:exported="true" - android:theme="@style/Theme.Camera"> + android:theme="@style/Theme.Camera" + tools:ignore="DiscouragedApi"> @@ -92,7 +94,8 @@ android:configChanges="orientation|keyboardHidden|screenSize" android:windowSoftInputMode="stateAlwaysHidden|adjustPan" android:screenOrientation="nosensor" - android:exported="true"> + android:exported="true" + tools:ignore="DiscouragedApi"> @@ -111,7 +114,8 @@ android:windowSoftInputMode="stateAlwaysHidden|adjustPan" android:screenOrientation="nosensor" android:visibleToInstantApps="true" - android:exported="true"> + android:exported="true" + tools:ignore="DiscouragedApi"> @@ -131,7 +135,8 @@ android:screenOrientation="nosensor" android:showWhenLocked="true" android:excludeFromRecents="true" - android:exported="true"> + android:exported="true" + tools:ignore="DiscouragedApi"> @@ -151,7 +156,8 @@ android:windowSoftInputMode="stateAlwaysHidden|adjustPan" android:screenOrientation="nosensor" android:visibleToInstantApps="true" - android:exported="true"> + android:exported="true" + tools:ignore="DiscouragedApi"> @@ -194,7 +200,8 @@ android:exported="true" android:showWhenLocked="true" android:screenOrientation="nosensor" - android:excludeFromRecents="true"/> + android:excludeFromRecents="true" + tools:ignore="DiscouragedApi" />