Fix screen rotation state reset bug
Add android:configChanges to prevent activity recreation on orientation change. This fix ensures that app state (text input, conversation history, etc.) is preserved when the device rotates. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
486cf8ec94
commit
2dd7fec808
2 changed files with 6 additions and 3 deletions
|
|
@ -34,7 +34,8 @@
|
|||
<activity
|
||||
android:name=".WelcomeActivity"
|
||||
android:exported="true"
|
||||
android:theme="@style/Theme.OpenWebUIClient.NoActionBar">
|
||||
android:theme="@style/Theme.OpenWebUIClient.NoActionBar"
|
||||
android:configChanges="orientation|screenSize|keyboardHidden">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
|
|
@ -43,11 +44,13 @@
|
|||
<activity
|
||||
android:name=".IpInputActivity"
|
||||
android:exported="false"
|
||||
android:theme="@style/Theme.OpenWebUIClient.NoActionBar" />
|
||||
android:theme="@style/Theme.OpenWebUIClient.NoActionBar"
|
||||
android:configChanges="orientation|screenSize|keyboardHidden" />
|
||||
<activity
|
||||
android:name=".WebViewActivity"
|
||||
android:exported="true"
|
||||
android:theme="@style/Theme.OpenWebUIClient.NoActionBar">
|
||||
android:theme="@style/Theme.OpenWebUIClient.NoActionBar"
|
||||
android:configChanges="orientation|screenSize|keyboardHidden">
|
||||
<!-- Handle image sharing -->
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.SEND" />
|
||||
|
|
|
|||
0
gradlew
vendored
Normal file → Executable file
0
gradlew
vendored
Normal file → Executable file
Loading…
Add table
Add a link
Reference in a new issue