summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaude <noreply@anthropic.com>2026-04-10 21:57:42 +0000
committerClaude <noreply@anthropic.com>2026-04-10 21:57:42 +0000
commitd66ed02942849c0f19efaa1caeae14bd0eb1545b (patch)
treef3eff627b63e9907c0d0c45490e7670593237a04
parent35b214094a5563ae5b6cbd7cdff1e1617ca33184 (diff)
Lock MainActivity to portrait orientation
Layout doesn't support landscape; rotating was causing a crash. configChanges also prevents unnecessary activity recreation if the system somehow delivers an orientation event anyway. https://claude.ai/code/session_01HXPjBsogsJVRwCiekDGkJX
-rw-r--r--android-app/app/src/main/AndroidManifest.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/android-app/app/src/main/AndroidManifest.xml b/android-app/app/src/main/AndroidManifest.xml
index 2f23e87..bcab20c 100644
--- a/android-app/app/src/main/AndroidManifest.xml
+++ b/android-app/app/src/main/AndroidManifest.xml
@@ -25,7 +25,9 @@
android:foregroundServiceType="location" />
<activity
android:name=".MainActivity"
- android:exported="true">
+ android:exported="true"
+ android:screenOrientation="portrait"
+ android:configChanges="orientation|screenSize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />