Skip to content

fix: Made search, susi icon invisible in stt fragment #2201

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

Merged
merged 3 commits into from
May 15, 2019
Merged

fix: Made search, susi icon invisible in stt fragment #2201

merged 3 commits into from
May 15, 2019

Conversation

atm1504
Copy link
Member

@atm1504 atm1504 commented May 14, 2019

Fixes #2177

Changes: [Add here what changes were made in this issue and if possible provide links.]

Screenshots for the change:
ezgif com-video-to-gif

@auto-label auto-label bot added the fix label May 14, 2019
@@ -326,6 +328,8 @@ class ChatActivity : AppCompatActivity(), IChatView {
chatPresenter.stopHotwordDetection()
}
hideSoftKeyboard(this, window.decorView)
searchChat.visibility = View.INVISIBLE
fabsetting.visibility = View.INVISIBLE
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not View.GONE, so it will not accessible.

@@ -334,6 +338,8 @@ class ChatActivity : AppCompatActivity(), IChatView {

//Replies user with Speech
override fun voiceReply(reply: String, language: String) {
searchChat.visibility = View.VISIBLE
fabsetting.visibility = View.VISIBLE
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And what about it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And what about it?

When we open up sttfragment, and give some voice commands, the chat activity is not again restarted. It simply calls the function voiceReply. So, it was necessary to make the visibility here

@iamareebjamal iamareebjamal merged commit 574a2b5 into fossasia:development May 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

chat search icon appears in Stt fragment
3 participants