Skip to content
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

Ignore SpeechRecognizer leak #89

Merged
merged 1 commit into from May 14, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -186,6 +186,16 @@ public enum AndroidExcludedRefs {
}
},

SPEECH_RECOGNIZER(SDK_INT == KITKAT) {
@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.
// Fixed in AOSP: https://github.com/android/platform_frameworks_base/commit
// /b37866db469e81aca534ff6186bdafd44352329b
excluded.instanceField("android.speech.SpeechRecognizer$InternalListener", "this$0");
}
},

DEVICE_POLICY_MANAGER__SETTINGS_OBSERVER(MOTOROLA.equals(MANUFACTURER) && SDK_INT == KITKAT) {
@Override void add(ExcludedRefs.Builder excluded) {
if (MOTOROLA.equals(MANUFACTURER) && SDK_INT == KITKAT) {
Expand Down