Merge pull request #3959 from nextcloud/issue-3958-fixing-refresh-on-orientation

Follow up fix to refactoring
This commit is contained in:
Marcel Hibbe 2024-06-10 12:37:27 +02:00 committed by GitHub
commit 2b2975d77d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View file

@ -506,6 +506,7 @@ class ChatActivity :
.toString() + " | isPLaying: " + currentlyPlayedVoiceMessage!!.isPlayingVoiceMessage
)
}
chatViewModel.handleOrientationChange()
super.onSaveInstanceState(outState)
}

View file

@ -615,6 +615,10 @@ class ChatViewModel @Inject constructor(
audioFocusRequestManager.audioFocusRequest(request, callback)
}
fun handleOrientationChange() {
_getCapabilitiesViewState.value = GetCapabilitiesStartState
}
inner class GetRoomObserver : Observer<ConversationModel> {
override fun onSubscribe(d: Disposable) {
// unused atm