Loading domain/src/main/java/com/moez/QKSMS/util/Preferences.kt +1 −0 Original line number Diff line number Diff line Loading @@ -84,6 +84,7 @@ class Preferences @Inject constructor( val sia = rxPrefs.getBoolean("sia", false) // User configurable val sendAsGroup = rxPrefs.getBoolean("sendAsGroup", true) val nightMode = rxPrefs.getInteger("nightMode", when (Build.VERSION.SDK_INT >= 29) { true -> NIGHT_MODE_SYSTEM false -> NIGHT_MODE_OFF Loading presentation/src/main/java/com/moez/QKSMS/feature/compose/ComposeViewModel.kt +5 −1 Original line number Diff line number Diff line Loading @@ -188,6 +188,10 @@ class ComposeViewModel @Inject constructor( .distinctUntilChanged() .subscribe { title -> newState { copy(conversationtitle = title) } } disposables += prefs.sendAsGroup.asObservable() .distinctUntilChanged() .subscribe { enabled -> newState { copy(sendAsGroup = enabled) } } disposables += attachments .subscribe { attachments -> newState { copy(attachments = attachments) } } Loading Loading @@ -389,7 +393,7 @@ class ComposeViewModel @Inject constructor( // Toggle the group sending mode view.sendAsGroupIntent .autoDisposable(view.scope()) .subscribe { newState { copy(sendAsGroup = !sendAsGroup) } } .subscribe { prefs.sendAsGroup.set(!prefs.sendAsGroup.get()) } // Scroll to search position searchSelection Loading Loading
domain/src/main/java/com/moez/QKSMS/util/Preferences.kt +1 −0 Original line number Diff line number Diff line Loading @@ -84,6 +84,7 @@ class Preferences @Inject constructor( val sia = rxPrefs.getBoolean("sia", false) // User configurable val sendAsGroup = rxPrefs.getBoolean("sendAsGroup", true) val nightMode = rxPrefs.getInteger("nightMode", when (Build.VERSION.SDK_INT >= 29) { true -> NIGHT_MODE_SYSTEM false -> NIGHT_MODE_OFF Loading
presentation/src/main/java/com/moez/QKSMS/feature/compose/ComposeViewModel.kt +5 −1 Original line number Diff line number Diff line Loading @@ -188,6 +188,10 @@ class ComposeViewModel @Inject constructor( .distinctUntilChanged() .subscribe { title -> newState { copy(conversationtitle = title) } } disposables += prefs.sendAsGroup.asObservable() .distinctUntilChanged() .subscribe { enabled -> newState { copy(sendAsGroup = enabled) } } disposables += attachments .subscribe { attachments -> newState { copy(attachments = attachments) } } Loading Loading @@ -389,7 +393,7 @@ class ComposeViewModel @Inject constructor( // Toggle the group sending mode view.sendAsGroupIntent .autoDisposable(view.scope()) .subscribe { newState { copy(sendAsGroup = !sendAsGroup) } } .subscribe { prefs.sendAsGroup.set(!prefs.sendAsGroup.get()) } // Scroll to search position searchSelection Loading