Skip to content

Commit

Permalink
Merge pull request #99 from square/py/ignore_more_speech
Browse files Browse the repository at this point in the history
Ignore SpeechRecognizer pre L
  • Loading branch information
pyricau committed May 15, 2015
2 parents 370d39c + bcd0a4c commit b7ce4a8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public enum AndroidExcludedRefs {
}
},

SPEECH_RECOGNIZER(SDK_INT == KITKAT) {
SPEECH_RECOGNIZER(SDK_INT < LOLLIPOP) {
@Override void add(ExcludedRefs.Builder excluded) {
// Prior to Android 5, SpeechRecognizer.InternalListener was a non static inner class and
// leaked the SpeechRecognizer which leaked an activity context.
Expand Down

0 comments on commit b7ce4a8

Please sign in to comment.