Skip to content

Commit

Permalink
Merge pull request square#35 from square/py/ignore_issue_32
Browse files Browse the repository at this point in the history
Because Samsung. Fixes square#32
  • Loading branch information
pyricau committed May 10, 2015
2 parents 1c161ca + 2593a6b commit 5ab2a64
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 5ab2a64

Please sign in to comment.