mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-22 12:08:34 +00:00
Disable sticker suggestions when editing message.
This commit is contained in:
@@ -3829,7 +3829,11 @@ public class ConversationParentFragment extends Fragment
|
||||
composeText.postDelayed(ConversationParentFragment.this::updateToggleButtonState, 50);
|
||||
}
|
||||
|
||||
if (!inputPanel.inEditMessageMode()) {
|
||||
stickerViewModel.onInputTextUpdated(s.toString());
|
||||
} else {
|
||||
stickerViewModel.onInputTextUpdated("");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -4232,6 +4236,7 @@ public class ConversationParentFragment extends Fragment
|
||||
previousPages = keyboardPagerViewModel.pages().getValue();
|
||||
keyboardPagerViewModel.setOnlyPage(KeyboardPage.EMOJI);
|
||||
onKeyboardChanged(KeyboardPage.EMOJI);
|
||||
stickerViewModel.onInputTextUpdated("");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -3291,7 +3291,11 @@ class ConversationFragment :
|
||||
composeText.postDelayed({ updateToggleButtonState() }, 50)
|
||||
}
|
||||
|
||||
if (!inputPanel.inEditMessageMode()) {
|
||||
stickerViewModel.onInputTextUpdated(s.toString())
|
||||
} else {
|
||||
stickerViewModel.onInputTextUpdated("")
|
||||
}
|
||||
}
|
||||
|
||||
override fun onFocusChange(v: View, hasFocus: Boolean) {
|
||||
@@ -3421,6 +3425,7 @@ class ConversationFragment :
|
||||
previousPages = keyboardPagerViewModel.pages().value
|
||||
keyboardPagerViewModel.setOnlyPage(KeyboardPage.EMOJI)
|
||||
onKeyboardChanged(KeyboardPage.EMOJI)
|
||||
stickerViewModel.onInputTextUpdated("")
|
||||
}
|
||||
|
||||
override fun onExitEditMode() {
|
||||
|
||||
Reference in New Issue
Block a user