We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 388d20b commit 54eb7e7Copy full SHA for 54eb7e7
app/src/main/java/org/fossasia/susi/ai/chat/STTfragment.kt
@@ -169,7 +169,17 @@ class STTFragment : Fragment() {
169
recognizer.setRecognitionListener(listener)
170
recognizer.startListening(intent)
171
}
172
+ private fun restoreActivityState() {
173
174
+ if ((activity as ChatActivity).recordingThread != null) {
175
+ chatPresenter.startHotwordDetection()
176
+ }
177
+ (activity as ChatActivity).fabsetting.show()
178
+ activity?.searchChat?.show()
179
+ activity?.voiceSearchChat?.show()
180
+ activity?.btnSpeak?.isEnabled = true
181
+ activity?.chatSearchInput?.visibility = View.GONE
182
183
override fun onPause() {
184
super.onPause()
185
if (thisActivity is ChatActivity) {
0 commit comments