@Test(expected = NullPointerException.class) public void testGetColorStateListNullTheme() { ThemeUtils.getColorStateList(null, android.R.attr.textColorPrimary); }
@Nullable public static ColorStateList getColorStateList(@NonNull final Theme theme, @AttrRes final int attr) { final TypedArray array = theme.obtainStyledAttributes(new int[]{attr}); try { return array.getColorStateList(0); } finally { array.recycle(); } }
ThemeUtils { @Nullable public static ColorStateList getColorStateList(@NonNull final Theme theme, @AttrRes final int attr) { final TypedArray array = theme.obtainStyledAttributes(new int[]{attr}); try { return array.getColorStateList(0); } finally { array.recycle(); } } }
ThemeUtils { @Nullable public static ColorStateList getColorStateList(@NonNull final Theme theme, @AttrRes final int attr) { final TypedArray array = theme.obtainStyledAttributes(new int[]{attr}); try { return array.getColorStateList(0); } finally { array.recycle(); } } private  ThemeUtils(); }
ThemeUtils { @Nullable public static ColorStateList getColorStateList(@NonNull final Theme theme, @AttrRes final int attr) { final TypedArray array = theme.obtainStyledAttributes(new int[]{attr}); try { return array.getColorStateList(0); } finally { array.recycle(); } } private  ThemeUtils(); @ColorInt static int getColor(@NonNull final Theme theme, @AttrRes final int attr); @Nullable static ColorStateList getColorStateList(@NonNull final Theme theme,
            @AttrRes final int attr); @Nullable static Drawable getDrawable(@NonNull final Theme theme,
            @AttrRes final int attr); }
ThemeUtils { @Nullable public static ColorStateList getColorStateList(@NonNull final Theme theme, @AttrRes final int attr) { final TypedArray array = theme.obtainStyledAttributes(new int[]{attr}); try { return array.getColorStateList(0); } finally { array.recycle(); } } private  ThemeUtils(); @ColorInt static int getColor(@NonNull final Theme theme, @AttrRes final int attr); @Nullable static ColorStateList getColorStateList(@NonNull final Theme theme,
            @AttrRes final int attr); @Nullable static Drawable getDrawable(@NonNull final Theme theme,
            @AttrRes final int attr);  }