Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
  • Loading branch information
rapterjet2004 committed Jun 6, 2024
1 parent 3ed7572 commit 560e454
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ class ChatActivity :
.toString() + " | isPLaying: " + currentlyPlayedVoiceMessage!!.isPlayingVoiceMessage
)
}
chatViewModel.handleOrientationChange()
super.onSaveInstanceState(outState)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 560e454

Please sign in to comment.