commit | 4fbaf9b54d7f9723f3ec5c320db9cea887eeff7b | [log] [tgz] |
---|---|---|
author | Jerome Poichet <jpoichet@google.com> | Fri Jun 06 17:09:51 2014 -0700 |
committer | Jerome Poichet <jpoichet@google.com> | Fri Jun 06 17:35:39 2014 -0700 |
tree | 28f4d9bf6ca052b46c17eaa0c66c593d995dbdd9 | |
parent | 3269c07a0277b250a67a05fbc3c072593a3eba3a [diff] |
Fixing SpeechRecognizer leak Since there is no lifecyce on SearchBar, moving the ownership of the SpeechRecognizer to the SearchFragment. - Creating a SpeechRecognizer when SearchFragment resumes and pass it to the SearchBar - Destroy SpeechRecognizer when SearchFragment pause, and unset it in the SearchBar - Ensure recognition has a recognizer before starting and stopping b/15460657 Change-Id: I95dc3f37b5c4ae7dbd337dcc90d28c6ee17f8f09