Skip to content

Commit

Permalink
fix: fixed visibility of voice search icon in chat activity and stt f…
Browse files Browse the repository at this point in the history
…ragment (#2237)

fix: fixed visibility of voice search icon in chat activity and stt fragment
  • Loading branch information
iamareebjamal authored May 30, 2019
2 parents 6b366a9 + 1270757 commit d61dbd5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/org/fossasia/susi/ai/chat/ChatActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class ChatActivity : AppCompatActivity(), IChatView {
}
searchChat.visibility = View.VISIBLE
fabsetting.visibility = View.VISIBLE
voiceSearchChat.visibility = View.GONE
voiceSearchChat.visibility = View.VISIBLE
}

override fun onTouchEvent(event: MotionEvent): Boolean {
Expand Down Expand Up @@ -356,6 +356,7 @@ class ChatActivity : AppCompatActivity(), IChatView {
hideSoftKeyboard(this, window.decorView)
searchChat.visibility = View.GONE
fabsetting.visibility = View.GONE
voiceSearchChat.visibility = View.GONE
val fragmentTransaction = supportFragmentManager.beginTransaction()
fragmentTransaction.replace(R.id.speechToTextFrame, STTFragment())
fragmentTransaction.addToBackStack(null)
Expand Down

0 comments on commit d61dbd5

Please sign in to comment.