mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-21 17:05:39 +03:00
Merge pull request #6757 from eidonia/bugfix/#5029-disbale-emoji-keyboard-not-applies-reply
[Bugfix #5029] disable emoji keyboard not applies to reply
This commit is contained in:
commit
304fb09f57
6 changed files with 19 additions and 3 deletions
1
changelog.d/5029.bugfix
Normal file
1
changelog.d/5029.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Disable emoji keyboard not applies in reply
|
|
@ -359,6 +359,8 @@ class TimelineFragment :
|
|||
|
||||
private var lockSendButton = false
|
||||
private val currentCallsViewPresenter = CurrentCallsViewPresenter()
|
||||
private val isEmojiKeyboardVisible: Boolean
|
||||
get() = vectorPreferences.showEmojiKeyboard()
|
||||
|
||||
private val lazyLoadedViews = RoomDetailLazyLoadedViews()
|
||||
private val emojiPopup: EmojiPopup by lifecycleAwareLazy {
|
||||
|
@ -1583,6 +1585,10 @@ class TimelineFragment :
|
|||
attachmentTypeSelector.show(views.composerLayout.views.attachmentButton)
|
||||
}
|
||||
|
||||
override fun onExpandOrCompactChange() {
|
||||
views.composerLayout.views.composerEmojiButton.isVisible = isEmojiKeyboardVisible
|
||||
}
|
||||
|
||||
override fun onSendMessage(text: CharSequence) {
|
||||
sendTextMessage(text)
|
||||
}
|
||||
|
|
|
@ -46,6 +46,7 @@ class MessageComposerView @JvmOverloads constructor(
|
|||
fun onCloseRelatedMessage()
|
||||
fun onSendMessage(text: CharSequence)
|
||||
fun onAddAttachment()
|
||||
fun onExpandOrCompactChange()
|
||||
}
|
||||
|
||||
val views: ComposerLayoutBinding
|
||||
|
@ -96,6 +97,7 @@ class MessageComposerView @JvmOverloads constructor(
|
|||
}
|
||||
currentConstraintSetId = R.layout.composer_layout_constraint_set_compact
|
||||
applyNewConstraintSet(animate, transitionComplete)
|
||||
callback?.onExpandOrCompactChange()
|
||||
}
|
||||
|
||||
fun expand(animate: Boolean = true, transitionComplete: (() -> Unit)? = null) {
|
||||
|
@ -105,6 +107,7 @@ class MessageComposerView @JvmOverloads constructor(
|
|||
}
|
||||
currentConstraintSetId = R.layout.composer_layout_constraint_set_expanded
|
||||
applyNewConstraintSet(animate, transitionComplete)
|
||||
callback?.onExpandOrCompactChange()
|
||||
}
|
||||
|
||||
fun setTextIfDifferent(text: CharSequence?): Boolean {
|
||||
|
|
|
@ -119,8 +119,10 @@
|
|||
android:background="?android:attr/selectableItemBackground"
|
||||
android:contentDescription="@string/a11y_open_emoji_picker"
|
||||
android:src="@drawable/ic_insert_emoji"
|
||||
android:visibility="invisible"
|
||||
app:tint="?vctr_content_tertiary"
|
||||
tools:ignore="MissingConstraints,MissingPrefix" />
|
||||
tools:ignore="MissingConstraints,MissingPrefix"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/sendButton"
|
||||
|
|
|
@ -155,13 +155,15 @@
|
|||
android:background="?android:attr/selectableItemBackground"
|
||||
android:contentDescription="@string/a11y_open_emoji_picker"
|
||||
android:src="@drawable/ic_insert_emoji"
|
||||
android:visibility="invisible"
|
||||
app:layout_constraintBottom_toBottomOf="@id/attachmentButton"
|
||||
app:layout_constraintEnd_toEndOf="@id/composerEditTextOuterBorder"
|
||||
app:layout_constraintStart_toEndOf="@id/composerEditText"
|
||||
app:layout_constraintTop_toTopOf="@id/attachmentButton"
|
||||
app:layout_goneMarginEnd="8dp"
|
||||
app:tint="?vctr_content_quaternary"
|
||||
tools:ignore="MissingPrefix" />
|
||||
tools:ignore="MissingPrefix"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/sendButton"
|
||||
|
|
|
@ -166,6 +166,7 @@
|
|||
android:background="?android:attr/selectableItemBackground"
|
||||
android:contentDescription="@string/a11y_open_emoji_picker"
|
||||
android:src="@drawable/ic_insert_emoji"
|
||||
android:visibility="invisible"
|
||||
app:layout_constraintBottom_toBottomOf="@id/sendButton"
|
||||
app:layout_constraintEnd_toEndOf="@id/composerEditTextOuterBorder"
|
||||
app:layout_constraintStart_toEndOf="@id/composerEditText"
|
||||
|
@ -173,7 +174,8 @@
|
|||
app:layout_goneMarginBottom="52dp"
|
||||
app:layout_goneMarginEnd="8dp"
|
||||
app:tint="?vctr_content_quaternary"
|
||||
tools:ignore="MissingPrefix" />
|
||||
tools:ignore="MissingPrefix"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/sendButton"
|
||||
|
|
Loading…
Reference in a new issue