Skip to content

Commit

Permalink
fix: jumping keyboard behavior (WPB-9357) (#3024)
Browse files Browse the repository at this point in the history
  • Loading branch information
yamilmedina authored May 22, 2024
1 parent fd020b2 commit 13792e5
Showing 1 changed file with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,24 +297,24 @@ fun EnabledMessageComposer(
)
}
}

if (additionalOptionStateHolder.selectedOption == AdditionalOptionSelectItem.DrawingMode) {
DrawingCanvasBottomSheet(
onDismissSketch = {
inputStateHolder.collapseComposer(additionalOptionStateHolder.additionalOptionsSubMenuState)
},
onSendSketch = {
onAttachmentPicked(UriAsset(it))
inputStateHolder.collapseComposer(additionalOptionStateHolder.additionalOptionsSubMenuState)
},
conversationTitle = CurrentConversationDetailsCache.conversationName.asString(),
tempWritableImageUri = tempWritableImageUri
)
}
}
}
}

if (additionalOptionStateHolder.selectedOption == AdditionalOptionSelectItem.DrawingMode) {
DrawingCanvasBottomSheet(
onDismissSketch = {
showAdditionalOptionsMenu()
},
onSendSketch = {
onAttachmentPicked(UriAsset(it))
showAdditionalOptionsMenu()
},
conversationTitle = CurrentConversationDetailsCache.conversationName.asString(),
tempWritableImageUri = tempWritableImageUri
)
}

BackHandler(inputStateHolder.inputType is MessageCompositionType.Editing) {
cancelEdit()
}
Expand Down

0 comments on commit 13792e5

Please sign in to comment.