You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
104 lines
3.3 KiB
104 lines
3.3 KiB
package p032k0;
|
|
|
|
import android.content.res.ColorStateList;
|
|
import android.graphics.PorterDuff;
|
|
import android.graphics.drawable.Drawable;
|
|
import android.os.Build;
|
|
import android.widget.ImageView;
|
|
|
|
/* renamed from: k0.s */
|
|
/* loaded from: classes.dex */
|
|
public class C1329s {
|
|
|
|
/* renamed from: k0.s$a */
|
|
/* loaded from: classes.dex */
|
|
public static class C1330a {
|
|
/* renamed from: a */
|
|
public static ColorStateList m1609a(ImageView imageView) {
|
|
ColorStateList imageTintList;
|
|
imageTintList = imageView.getImageTintList();
|
|
return imageTintList;
|
|
}
|
|
|
|
/* renamed from: b */
|
|
public static PorterDuff.Mode m1608b(ImageView imageView) {
|
|
PorterDuff.Mode imageTintMode;
|
|
imageTintMode = imageView.getImageTintMode();
|
|
return imageTintMode;
|
|
}
|
|
|
|
/* renamed from: c */
|
|
public static void m1607c(ImageView imageView, ColorStateList colorStateList) {
|
|
imageView.setImageTintList(colorStateList);
|
|
}
|
|
|
|
/* renamed from: d */
|
|
public static void m1606d(ImageView imageView, PorterDuff.Mode mode) {
|
|
imageView.setImageTintMode(mode);
|
|
}
|
|
}
|
|
|
|
/* renamed from: a */
|
|
public static ColorStateList m1613a(ImageView imageView) {
|
|
if (Build.VERSION.SDK_INT >= 21) {
|
|
return C1330a.m1609a(imageView);
|
|
}
|
|
if (imageView instanceof InterfaceC1288c1) {
|
|
return ((InterfaceC1288c1) imageView).getSupportImageTintList();
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/* renamed from: b */
|
|
public static PorterDuff.Mode m1612b(ImageView imageView) {
|
|
if (Build.VERSION.SDK_INT >= 21) {
|
|
return C1330a.m1608b(imageView);
|
|
}
|
|
if (imageView instanceof InterfaceC1288c1) {
|
|
return ((InterfaceC1288c1) imageView).getSupportImageTintMode();
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/* renamed from: c */
|
|
public static void m1611c(ImageView imageView, ColorStateList colorStateList) {
|
|
Drawable drawable;
|
|
int i = Build.VERSION.SDK_INT;
|
|
if (i < 21) {
|
|
if (imageView instanceof InterfaceC1288c1) {
|
|
((InterfaceC1288c1) imageView).setSupportImageTintList(colorStateList);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
C1330a.m1607c(imageView, colorStateList);
|
|
if (i != 21 || (drawable = imageView.getDrawable()) == null || C1330a.m1609a(imageView) == null) {
|
|
return;
|
|
}
|
|
if (drawable.isStateful()) {
|
|
drawable.setState(imageView.getDrawableState());
|
|
}
|
|
imageView.setImageDrawable(drawable);
|
|
}
|
|
|
|
/* renamed from: d */
|
|
public static void m1610d(ImageView imageView, PorterDuff.Mode mode) {
|
|
Drawable drawable;
|
|
int i = Build.VERSION.SDK_INT;
|
|
if (i < 21) {
|
|
if (imageView instanceof InterfaceC1288c1) {
|
|
((InterfaceC1288c1) imageView).setSupportImageTintMode(mode);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
C1330a.m1606d(imageView, mode);
|
|
if (i != 21 || (drawable = imageView.getDrawable()) == null || C1330a.m1609a(imageView) == null) {
|
|
return;
|
|
}
|
|
if (drawable.isStateful()) {
|
|
drawable.setState(imageView.getDrawableState());
|
|
}
|
|
imageView.setImageDrawable(drawable);
|
|
}
|
|
} |