Skip to content

Commit

Permalink
Merge pull request #35 from square/py/ignore_issue_32
Browse files Browse the repository at this point in the history
Because Samsung. Fixes #32
  • Loading branch information
pyricau committed May 10, 2015
2 parents 923e9f3 + 903d790 commit 59e73af
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,13 @@ public static ExcludedRefs.Builder createAppDefaults() {
excluded.instanceField("android.view.ViewConfiguration", "mContext");
}

if (SAMSUNG.equals(MANUFACTURER) && SDK_INT == KITKAT) {
// Samsung added a static mContext_static field to AudioManager, holds a reference to the
// activity.
// Observed here: https://github.com/square/leakcanary/issues/32
excluded.staticField("android.media.AudioManager", "mContext_static");
}

return excluded;
}

Expand Down

0 comments on commit 59e73af

Please sign in to comment.