You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: Simplify TtsEditContainerScreen save logic and update SaveCallBack usage
- Replaced the use of a list iterator with a for-each loop in `TtsEditContainerScreen` for iterating through save callbacks, making the code more concise.
- Changed `LocalSaveCallBack` from `staticCompositionLocalOf` to `compositionLocalOf` for better handling of missing providers.
- Remove `immersionbar` and `immersionbar.ktx` from the project dependencies.
- Add `AndroidFilePicker` dependency.
Copy file name to clipboardExpand all lines: app/src/main/java/com/github/jing332/tts_server_android/compose/systts/list/ui/widgets/TtsEditContainerScreen.kt
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -58,10 +58,8 @@ fun TtsEditContainerScreen(
58
58
onSystemTtsChange = onSysttsChange,
59
59
onSave = {
60
60
scope.launch {
61
-
val iterator = callbacks.listIterator(callbacks.size)
0 commit comments