From 3fab1c38b4bc417bc5c868482e153c0fb592afa8 Mon Sep 17 00:00:00 2001 From: Mariotaku Lee Date: Wed, 17 May 2017 15:33:57 +0800 Subject: [PATCH] fixed compose summary text change listener --- .../kotlin/org/mariotaku/twidere/activity/ComposeActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twidere/src/main/kotlin/org/mariotaku/twidere/activity/ComposeActivity.kt b/twidere/src/main/kotlin/org/mariotaku/twidere/activity/ComposeActivity.kt index 453fd0229..277f10de9 100644 --- a/twidere/src/main/kotlin/org/mariotaku/twidere/activity/ComposeActivity.kt +++ b/twidere/src/main/kotlin/org/mariotaku/twidere/activity/ComposeActivity.kt @@ -1735,7 +1735,7 @@ class ComposeActivity : BaseActivity(), OnMenuItemClickListener, OnClickListener private fun setupEditText() { val sendByEnter = preferences[quickSendKey] EditTextEnterHandler.attach(editText, ComposeEnterListener(this), sendByEnter) - editText.addTextChangedListener(object : SimpleTextWatcher { + editSummary.addTextChangedListener(object : SimpleTextWatcher { override fun onTextChanged(s: CharSequence, start: Int, before: Int, count: Int) { setMenu() updateTextCount()