feat(v1.8.0): IMPL_01 Language Settings - Smooth Language Switching
- Prevent activity recreate during language changes via configChanges - Add onConfigurationChanged() handler in ComposeSettingsActivity - Simplify setAppLanguage() - let system handle locale change smoothly - Update language_info strings to reflect smooth transition - Remove unused Activity parameter and imports Fixes flicker during language switching by handling configuration changes instead of recreating the entire activity. Compose recomposes automatically when locale changes, providing seamless UX.
This commit is contained in:
@@ -69,8 +69,10 @@
|
||||
android:parentActivityName=".ui.main.ComposeMainActivity" />
|
||||
|
||||
<!-- Settings Activity v1.5.0 (Jetpack Compose) -->
|
||||
<!-- v1.8.0: Handle locale changes without recreate for smooth language switching -->
|
||||
<activity
|
||||
android:name=".ui.settings.ComposeSettingsActivity"
|
||||
android:configChanges="locale|layoutDirection"
|
||||
android:parentActivityName=".ui.main.ComposeMainActivity"
|
||||
android:theme="@style/Theme.SimpleNotes" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user