Skip to content

Commit

Permalink
Add LENOVO and INFINIX to list of exclusions for Resources.mContext l…
Browse files Browse the repository at this point in the history
…eaks.
  • Loading branch information
ericmaxwell2003 committed Oct 6, 2023
1 parent e798d5c commit c45385a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions shark/shark-android/api/shark-android.api
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public abstract class shark/AndroidReferenceMatchers : java/lang/Enum {
public static final field GESTURE_BOOST_MANAGER Lshark/AndroidReferenceMatchers;
public static final field HOST_ADPU_SERVICE_MSG_HANDLER Lshark/AndroidReferenceMatchers;
public static final field HUAWEI Ljava/lang/String;
public static final field INFINIX Ljava/lang/String;
public static final field IMM_CURRENT_INPUT_CONNECTION Lshark/AndroidReferenceMatchers;
public static final field IMM_LAST_FOCUS_VIEW Lshark/AndroidReferenceMatchers;
public static final field INPUT_MANAGER__M_LATE_INIT_CONTEXT Lshark/AndroidReferenceMatchers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,8 @@ enum class AndroidReferenceMatchers {
+ " instance that has a context that is the activity."
+ " Observed here: https://github.com/square/leakcanary/issues/1#issue-74450184"
) {
manufacturer == SAMSUNG && sdkInt == 19
(manufacturer == SAMSUNG && sdkInt == 19) ||
((manufacturer == LENOVO || manufacturer == INFINIX) && sdkInt in 31..33)
}
}
},
Expand Down Expand Up @@ -1479,6 +1480,7 @@ enum class AndroidReferenceMatchers {
const val VIVO = "vivo"
const val RAZER = "Razer"
const val SHARP = "SHARP"
const val INFINIX = "INFINIX"

/**
* Returns a list of [ReferenceMatcher] that only contains [IgnoredReferenceMatcher] and no
Expand Down

0 comments on commit c45385a

Please sign in to comment.