mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-22 13:05:31 +03:00
Merge pull request #3959 from nextcloud/issue-3958-fixing-refresh-on-orientation
Follow up fix to refactoring
This commit is contained in:
commit
2b2975d77d
2 changed files with 5 additions and 0 deletions
|
@ -506,6 +506,7 @@ class ChatActivity :
|
||||||
.toString() + " | isPLaying: " + currentlyPlayedVoiceMessage!!.isPlayingVoiceMessage
|
.toString() + " | isPLaying: " + currentlyPlayedVoiceMessage!!.isPlayingVoiceMessage
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
chatViewModel.handleOrientationChange()
|
||||||
super.onSaveInstanceState(outState)
|
super.onSaveInstanceState(outState)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -615,6 +615,10 @@ class ChatViewModel @Inject constructor(
|
||||||
audioFocusRequestManager.audioFocusRequest(request, callback)
|
audioFocusRequestManager.audioFocusRequest(request, callback)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun handleOrientationChange() {
|
||||||
|
_getCapabilitiesViewState.value = GetCapabilitiesStartState
|
||||||
|
}
|
||||||
|
|
||||||
inner class GetRoomObserver : Observer<ConversationModel> {
|
inner class GetRoomObserver : Observer<ConversationModel> {
|
||||||
override fun onSubscribe(d: Disposable) {
|
override fun onSubscribe(d: Disposable) {
|
||||||
// unused atm
|
// unused atm
|
||||||
|
|
Loading…
Reference in a new issue