Fix masking when attachment keyboard is visible.
This commit is contained in:
parent
dc48ee5aed
commit
eeb0c838db
1 changed files with 15 additions and 2 deletions
|
@ -2934,7 +2934,7 @@ public class ConversationActivity extends PassphraseRequiredActivity
|
|||
{
|
||||
reactionOverlay.setOnToolbarItemClickedListener(toolbarListener);
|
||||
reactionOverlay.setOnHideListener(onHideListener);
|
||||
reactionOverlay.show(this, maskTarget, messageRecord, panelParent.getMeasuredHeight());
|
||||
reactionOverlay.show(this, maskTarget, messageRecord, inputAreaHeight());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -2959,7 +2959,7 @@ public class ConversationActivity extends PassphraseRequiredActivity
|
|||
|
||||
@Override
|
||||
public void handleReactionDetails(@NonNull View maskTarget) {
|
||||
reactionOverlay.showMask(maskTarget, titleView.getMeasuredHeight(), panelParent.getMeasuredHeight());
|
||||
reactionOverlay.showMask(maskTarget, titleView.getMeasuredHeight(), inputAreaHeight());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -3059,6 +3059,19 @@ public class ConversationActivity extends PassphraseRequiredActivity
|
|||
updateLinkPreviewState();
|
||||
}
|
||||
|
||||
private int inputAreaHeight() {
|
||||
int height = panelParent.getMeasuredHeight();
|
||||
|
||||
if (attachmentKeyboardStub.resolved()) {
|
||||
View keyboard = attachmentKeyboardStub.get();
|
||||
if (keyboard.getVisibility() == View.VISIBLE) {
|
||||
return height + keyboard.getMeasuredHeight();
|
||||
}
|
||||
}
|
||||
|
||||
return height;
|
||||
}
|
||||
|
||||
private void onMessageRequestDeleteClicked(@NonNull MessageRequestViewModel requestModel) {
|
||||
Recipient recipient = requestModel.getRecipient().getValue();
|
||||
if (recipient == null) {
|
||||
|
|
Loading…
Add table
Reference in a new issue