Skip to content

Commit 5b7a72b

Browse files
committed
Recreating converters every time to keep locale up to date
1 parent 700c93e commit 5b7a72b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/src/main/kotlin/com/glodanif/bluetoothchat/di/DataModules.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ val localStorageModule = module {
3232
val viewModule = module {
3333
single { NotificationViewImpl(androidContext()) as NotificationView }
3434
single { ShortcutManagerImpl(androidContext()) as ShortcutManager }
35-
single { ContactConverter() }
36-
single { ConversationConverter(androidContext()) }
37-
single { ChatMessageConverter(androidContext()) }
35+
factory { ContactConverter() }
36+
factory { ConversationConverter(androidContext()) }
37+
factory { ChatMessageConverter(androidContext()) }
3838
}

0 commit comments

Comments
 (0)