fix: Speech to text button on chat activity not working #2469#2486
fix: Speech to text button on chat activity not working #2469#2486shubhamkumar1739 wants to merge 1 commit into
Conversation
f71cc9e to
a146cb5
Compare
The build is failing✨ Good work on this PR so far! ✨ Unfortunately, the Circle CI build is failing as of 90334f2. Here's the output:
|
8accce4 to
c59a7c0
Compare
|
@shubhamkumar1739 problem is bit bigger than just working of speech to text button. Notice the SearchTextView in issue gif also the icons on top are gone. Simple null check in onError of STTFragment of activity can fix the working of speech to text. |
|
Yes but I have also fixed the problem which caused the icons to disappear. There was also another error that was occurring : you weren't able to chat with SUSI after you got stuck into this state. I have fixed that as well |
|
Can you try adding a simple null check in onError rather then creating restoreActivityState() Just give it a try... |
|
Actually adding null check on onError didn't work. But i realised i had missed some implementations. So i pushed the changes again. |
159f30e to
ce5f922
Compare
|
Please look at it now. I dont think the app will crash now. |
|
What I was saying that applying null check in onError didn't fix the "invisible view" issue. This crash issue isn't occurring on my device as well as other devices that I tested on. But I will apply the null check nonetheless :) |
|
No don't... Im not a mentor, it's just a suggestion... Btw my device is oppo a3s, it fixed the crash issue |
|
Since the problem is occurring frequently, it's better to fix it. You don't have to be a mentor to help. Thanks a lot. |
ce5f922 to
90334f2
Compare
Add restoreActivityState() in STTFragment to make invisible views visible and perform other tasks
90334f2 to
7de9407
Compare


Fixes #2469 Speech to text button on chat activity not working
Changes: add functions to make view visible
Screenshots :
