From 0c4b1c8cc59412ece13e6183f2c74cbdb7d52aca Mon Sep 17 00:00:00 2001 From: iam844 Date: Mon, 23 Jul 2018 03:26:36 +0530 Subject: [PATCH] FIx clear text field bug --- .idea/caches/build_file_checksums.ser | Bin 534 -> 542 bytes .idea/misc.xml | 2 +- .../campuscommerce/activities/ChatActivity.kt | 4 +++- build.gradle | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.idea/caches/build_file_checksums.ser b/.idea/caches/build_file_checksums.ser index 1af3eaab7bcf4c6103a6447b4df3be4fd7987076..5d044be34af760b965fd7cca06a5e7cd16e097a9 100644 GIT binary patch delta 110 zcmV-!0FnQe1fB$tmjz_Q%-R=`oSzVcFPf)ogRv34+UkNsD?H!-OBNkyO QYiIVB`yKfnVtjsVc;#R$ZvX%Q delta 96 zcmV-m0H6P!1eOGlmjz;^33*wOoSzW088;UoNxn#UJw^3;mEVz*O934n)W-}m&tA#m zIfDfHmA)zibO0qUXm4$0FLP*RY?HeIH - + diff --git a/app/src/main/java/in/webdevlabs/campuscommerce/activities/ChatActivity.kt b/app/src/main/java/in/webdevlabs/campuscommerce/activities/ChatActivity.kt index 21228d7..56b2d5d 100644 --- a/app/src/main/java/in/webdevlabs/campuscommerce/activities/ChatActivity.kt +++ b/app/src/main/java/in/webdevlabs/campuscommerce/activities/ChatActivity.kt @@ -73,7 +73,9 @@ class ChatActivity : AppCompatActivity() { private fun setup() { sendButton.setOnClickListener({ send() - msgEditText.clearComposingText() + + //Clears text field + msgEditText.setText("") }) msgEditText.addTextChangedListener(object : TextWatcher { override fun afterTextChanged(p0: Editable?) { diff --git a/build.gradle b/build.gradle index cf1c5ab..7dca586 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:3.1.0' + classpath 'com.android.tools.build:gradle:3.1.3' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath 'com.google.gms:google-services:3.2.0'