Skip to content
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

fix: fixed visibility of voice search icon in chat activity and stt fragment #2237

Merged
merged 1 commit into from
May 30, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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