Skip to content

Commit

Permalink
Ignore INPUT_METHOD_MANAGER__ROOT_VIEW on M
Browse files Browse the repository at this point in the history
See square#322

Also directly reference Lollipop constant.
  • Loading branch information
pyricau committed Mar 20, 2016
1 parent 8fa2a64 commit 1104c95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
import static android.os.Build.VERSION_CODES.JELLY_BEAN;
import static android.os.Build.VERSION_CODES.KITKAT;
import static android.os.Build.VERSION_CODES.LOLLIPOP;
import static android.os.Build.VERSION_CODES.LOLLIPOP_MR1;
import static android.os.Build.VERSION_CODES.M;
import static com.squareup.leakcanary.AndroidWatchExecutor.LEAK_CANARY_THREAD_NAME;
import static com.squareup.leakcanary.internal.LeakCanaryInternals.LG;
import static com.squareup.leakcanary.internal.LeakCanaryInternals.LOLLIPOP_MR1;
import static com.squareup.leakcanary.internal.LeakCanaryInternals.MOTOROLA;
import static com.squareup.leakcanary.internal.LeakCanaryInternals.NVIDIA;
import static com.squareup.leakcanary.internal.LeakCanaryInternals.SAMSUNG;
Expand Down Expand Up @@ -150,7 +150,7 @@ public enum AndroidExcludedRefs {
}
},

INPUT_METHOD_MANAGER__ROOT_VIEW(SDK_INT >= ICE_CREAM_SANDWICH_MR1 && SDK_INT <= LOLLIPOP_MR1) {
INPUT_METHOD_MANAGER__ROOT_VIEW(SDK_INT >= ICE_CREAM_SANDWICH_MR1 && SDK_INT <= M) {
@Override void add(ExcludedRefs.Builder excluded) {
excluded.instanceField("android.view.inputmethod.InputMethodManager", "mCurRootView")
.reason("The singleton InputMethodManager is holding a reference to mCurRootView long"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@

public final class LeakCanaryInternals {

// SDK INT for API 22.
public static final int LOLLIPOP_MR1 = 22;
public static final String SAMSUNG = "samsung";
public static final String MOTOROLA = "motorola";
public static final String LG = "LGE";
Expand Down

0 comments on commit 1104c95

Please sign in to comment.