-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
760 chat sendbutton visual feedback #812
Conversation
@@ -4,15 +4,20 @@ import android.content.BroadcastReceiver | |||
import android.content.Context | |||
import android.content.Intent | |||
import android.content.IntentFilter | |||
import android.graphics.PorterDuff |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused import
@@ -142,6 +147,19 @@ class ChatFragment : ChatView, BaseFragment(), AnkoLogger { | |||
} | |||
|
|||
bt_send.onClick { presenter.sendMessage() } | |||
deactivateSendButton() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extract the onTextChanged handler method and just call it here. This makes future modifications a bit harder, e.g. restoring the last unsent message into the message field.
resolves #812