Skip to content

Commit

Permalink
Merge pull request #3959 from nextcloud/issue-3958-fixing-refresh-on-…
Browse files Browse the repository at this point in the history
…orientation

Follow up fix to refactoring
  • Loading branch information
mahibi authored Jun 10, 2024
2 parents 3ed7572 + 560e454 commit 2b2975d
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 2b2975d

Please sign in to comment.