package p016f; import android.content.res.ColorStateList; import android.content.res.Resources; import android.graphics.Canvas; import android.graphics.ColorFilter; import android.graphics.Outline; import android.graphics.PorterDuff; import android.graphics.Rect; import android.graphics.drawable.Drawable; import android.os.Build; import android.os.SystemClock; import android.util.SparseArray; import p001a0.C0012f; /* renamed from: f.b */ /* loaded from: classes.dex */ public class C0675b extends Drawable implements Drawable.Callback { /* renamed from: d */ public AbstractC0679d f2228d; /* renamed from: e */ public Rect f2229e; /* renamed from: f */ public Drawable f2230f; /* renamed from: g */ public Drawable f2231g; /* renamed from: i */ public boolean f2233i; /* renamed from: k */ public boolean f2235k; /* renamed from: l */ public Runnable f2236l; /* renamed from: m */ public long f2237m; /* renamed from: n */ public long f2238n; /* renamed from: o */ public C0678c f2239o; /* renamed from: h */ public int f2232h = 255; /* renamed from: j */ public int f2234j = -1; /* renamed from: f.b$a */ /* loaded from: classes.dex */ public class RunnableC0676a implements Runnable { public RunnableC0676a() { } @Override // java.lang.Runnable public void run() { C0675b.this.m3157a(true); C0675b.this.invalidateSelf(); } } /* renamed from: f.b$b */ /* loaded from: classes.dex */ public static class C0677b { /* renamed from: a */ public static boolean m3150a(Drawable.ConstantState constantState) { boolean canApplyTheme; canApplyTheme = constantState.canApplyTheme(); return canApplyTheme; } /* renamed from: b */ public static void m3149b(Drawable drawable, Outline outline) { drawable.getOutline(outline); } /* renamed from: c */ public static Resources m3148c(Resources.Theme theme) { Resources resources; resources = theme.getResources(); return resources; } } /* renamed from: f.b$c */ /* loaded from: classes.dex */ public static class C0678c implements Drawable.Callback { /* renamed from: d */ public Drawable.Callback f2241d; /* renamed from: a */ public Drawable.Callback m3147a() { Drawable.Callback callback = this.f2241d; this.f2241d = null; return callback; } /* renamed from: b */ public C0678c m3146b(Drawable.Callback callback) { this.f2241d = callback; return this; } @Override // android.graphics.drawable.Drawable.Callback public void invalidateDrawable(Drawable drawable) { } @Override // android.graphics.drawable.Drawable.Callback public void scheduleDrawable(Drawable drawable, Runnable runnable, long j) { Drawable.Callback callback = this.f2241d; if (callback != null) { callback.scheduleDrawable(drawable, runnable, j); } } @Override // android.graphics.drawable.Drawable.Callback public void unscheduleDrawable(Drawable drawable, Runnable runnable) { Drawable.Callback callback = this.f2241d; if (callback != null) { callback.unscheduleDrawable(drawable, runnable); } } } /* renamed from: f.b$d */ /* loaded from: classes.dex */ public static abstract class AbstractC0679d extends Drawable.ConstantState { /* renamed from: A */ public int f2242A; /* renamed from: B */ public int f2243B; /* renamed from: C */ public boolean f2244C; /* renamed from: D */ public ColorFilter f2245D; /* renamed from: E */ public boolean f2246E; /* renamed from: F */ public ColorStateList f2247F; /* renamed from: G */ public PorterDuff.Mode f2248G; /* renamed from: H */ public boolean f2249H; /* renamed from: I */ public boolean f2250I; /* renamed from: a */ public final C0675b f2251a; /* renamed from: b */ public Resources f2252b; /* renamed from: c */ public int f2253c; /* renamed from: d */ public int f2254d; /* renamed from: e */ public int f2255e; /* renamed from: f */ public SparseArray f2256f; /* renamed from: g */ public Drawable[] f2257g; /* renamed from: h */ public int f2258h; /* renamed from: i */ public boolean f2259i; /* renamed from: j */ public boolean f2260j; /* renamed from: k */ public Rect f2261k; /* renamed from: l */ public boolean f2262l; /* renamed from: m */ public boolean f2263m; /* renamed from: n */ public int f2264n; /* renamed from: o */ public int f2265o; /* renamed from: p */ public int f2266p; /* renamed from: q */ public int f2267q; /* renamed from: r */ public boolean f2268r; /* renamed from: s */ public int f2269s; /* renamed from: t */ public boolean f2270t; /* renamed from: u */ public boolean f2271u; /* renamed from: v */ public boolean f2272v; /* renamed from: w */ public boolean f2273w; /* renamed from: x */ public boolean f2274x; /* renamed from: y */ public boolean f2275y; /* renamed from: z */ public int f2276z; public AbstractC0679d(AbstractC0679d abstractC0679d, C0675b c0675b, Resources resources) { this.f2259i = false; this.f2262l = false; this.f2274x = true; this.f2242A = 0; this.f2243B = 0; this.f2251a = c0675b; this.f2252b = resources != null ? resources : abstractC0679d != null ? abstractC0679d.f2252b : null; int m3153f = C0675b.m3153f(resources, abstractC0679d != null ? abstractC0679d.f2253c : 0); this.f2253c = m3153f; if (abstractC0679d == null) { this.f2257g = new Drawable[10]; this.f2258h = 0; return; } this.f2254d = abstractC0679d.f2254d; this.f2255e = abstractC0679d.f2255e; this.f2272v = true; this.f2273w = true; this.f2259i = abstractC0679d.f2259i; this.f2262l = abstractC0679d.f2262l; this.f2274x = abstractC0679d.f2274x; this.f2275y = abstractC0679d.f2275y; this.f2276z = abstractC0679d.f2276z; this.f2242A = abstractC0679d.f2242A; this.f2243B = abstractC0679d.f2243B; this.f2244C = abstractC0679d.f2244C; this.f2245D = abstractC0679d.f2245D; this.f2246E = abstractC0679d.f2246E; this.f2247F = abstractC0679d.f2247F; this.f2248G = abstractC0679d.f2248G; this.f2249H = abstractC0679d.f2249H; this.f2250I = abstractC0679d.f2250I; if (abstractC0679d.f2253c == m3153f) { if (abstractC0679d.f2260j) { this.f2261k = abstractC0679d.f2261k != null ? new Rect(abstractC0679d.f2261k) : null; this.f2260j = true; } if (abstractC0679d.f2263m) { this.f2264n = abstractC0679d.f2264n; this.f2265o = abstractC0679d.f2265o; this.f2266p = abstractC0679d.f2266p; this.f2267q = abstractC0679d.f2267q; this.f2263m = true; } } if (abstractC0679d.f2268r) { this.f2269s = abstractC0679d.f2269s; this.f2268r = true; } if (abstractC0679d.f2270t) { this.f2271u = abstractC0679d.f2271u; this.f2270t = true; } Drawable[] drawableArr = abstractC0679d.f2257g; this.f2257g = new Drawable[drawableArr.length]; this.f2258h = abstractC0679d.f2258h; SparseArray sparseArray = abstractC0679d.f2256f; this.f2256f = sparseArray != null ? sparseArray.clone() : new SparseArray<>(this.f2258h); int i = this.f2258h; for (int i2 = 0; i2 < i; i2++) { Drawable drawable = drawableArr[i2]; if (drawable != null) { Drawable.ConstantState constantState = drawable.getConstantState(); if (constantState != null) { this.f2256f.put(i2, constantState); } else { this.f2257g[i2] = drawableArr[i2]; } } } } /* renamed from: a */ public final int m3145a(Drawable drawable) { int i = this.f2258h; if (i >= this.f2257g.length) { mo3112o(i, i + 10); } drawable.mutate(); drawable.setVisible(false, true); drawable.setCallback(this.f2251a); this.f2257g[i] = drawable; this.f2258h++; this.f2255e = drawable.getChangingConfigurations() | this.f2255e; m3131p(); this.f2261k = null; this.f2260j = false; this.f2263m = false; this.f2272v = false; return i; } /* renamed from: b */ public final void m3144b(Resources.Theme theme) { if (theme != null) { m3141e(); int i = this.f2258h; Drawable[] drawableArr = this.f2257g; for (int i2 = 0; i2 < i; i2++) { Drawable drawable = drawableArr[i2]; if (drawable != null && C0012f.m5097b(drawable)) { C0012f.m5098a(drawableArr[i2], theme); this.f2255e |= drawableArr[i2].getChangingConfigurations(); } } m3123y(C0677b.m3148c(theme)); } } /* renamed from: c */ public boolean m3143c() { if (this.f2272v) { return this.f2273w; } m3141e(); this.f2272v = true; int i = this.f2258h; Drawable[] drawableArr = this.f2257g; for (int i2 = 0; i2 < i; i2++) { if (drawableArr[i2].getConstantState() == null) { this.f2273w = false; return false; } } this.f2273w = true; return true; } @Override // android.graphics.drawable.Drawable.ConstantState public boolean canApplyTheme() { int i = this.f2258h; Drawable[] drawableArr = this.f2257g; for (int i2 = 0; i2 < i; i2++) { Drawable drawable = drawableArr[i2]; if (drawable == null) { Drawable.ConstantState constantState = this.f2256f.get(i2); if (constantState != null && C0677b.m3150a(constantState)) { return true; } } else if (C0012f.m5097b(drawable)) { return true; } } return false; } /* renamed from: d */ public void m3142d() { this.f2263m = true; m3141e(); int i = this.f2258h; Drawable[] drawableArr = this.f2257g; this.f2265o = -1; this.f2264n = -1; this.f2267q = 0; this.f2266p = 0; for (int i2 = 0; i2 < i; i2++) { Drawable drawable = drawableArr[i2]; int intrinsicWidth = drawable.getIntrinsicWidth(); if (intrinsicWidth > this.f2264n) { this.f2264n = intrinsicWidth; } int intrinsicHeight = drawable.getIntrinsicHeight(); if (intrinsicHeight > this.f2265o) { this.f2265o = intrinsicHeight; } int minimumWidth = drawable.getMinimumWidth(); if (minimumWidth > this.f2266p) { this.f2266p = minimumWidth; } int minimumHeight = drawable.getMinimumHeight(); if (minimumHeight > this.f2267q) { this.f2267q = minimumHeight; } } } /* renamed from: e */ public final void m3141e() { SparseArray sparseArray = this.f2256f; if (sparseArray != null) { int size = sparseArray.size(); for (int i = 0; i < size; i++) { this.f2257g[this.f2256f.keyAt(i)] = m3129s(this.f2256f.valueAt(i).newDrawable(this.f2252b)); } this.f2256f = null; } } /* renamed from: f */ public final int m3140f() { return this.f2257g.length; } /* renamed from: g */ public final Drawable m3139g(int i) { int indexOfKey; Drawable drawable = this.f2257g[i]; if (drawable != null) { return drawable; } SparseArray sparseArray = this.f2256f; if (sparseArray == null || (indexOfKey = sparseArray.indexOfKey(i)) < 0) { return null; } Drawable m3129s = m3129s(this.f2256f.valueAt(indexOfKey).newDrawable(this.f2252b)); this.f2257g[i] = m3129s; this.f2256f.removeAt(indexOfKey); if (this.f2256f.size() == 0) { this.f2256f = null; } return m3129s; } @Override // android.graphics.drawable.Drawable.ConstantState public int getChangingConfigurations() { return this.f2254d | this.f2255e; } /* renamed from: h */ public final int m3138h() { return this.f2258h; } /* renamed from: i */ public final int m3137i() { if (!this.f2263m) { m3142d(); } return this.f2265o; } /* renamed from: j */ public final int m3136j() { if (!this.f2263m) { m3142d(); } return this.f2267q; } /* renamed from: k */ public final int m3135k() { if (!this.f2263m) { m3142d(); } return this.f2266p; } /* renamed from: l */ public final Rect m3134l() { Rect rect = null; if (this.f2259i) { return null; } Rect rect2 = this.f2261k; if (rect2 != null || this.f2260j) { return rect2; } m3141e(); Rect rect3 = new Rect(); int i = this.f2258h; Drawable[] drawableArr = this.f2257g; for (int i2 = 0; i2 < i; i2++) { if (drawableArr[i2].getPadding(rect3)) { if (rect == null) { rect = new Rect(0, 0, 0, 0); } int i3 = rect3.left; if (i3 > rect.left) { rect.left = i3; } int i4 = rect3.top; if (i4 > rect.top) { rect.top = i4; } int i5 = rect3.right; if (i5 > rect.right) { rect.right = i5; } int i6 = rect3.bottom; if (i6 > rect.bottom) { rect.bottom = i6; } } } this.f2260j = true; this.f2261k = rect; return rect; } /* renamed from: m */ public final int m3133m() { if (!this.f2263m) { m3142d(); } return this.f2264n; } /* renamed from: n */ public final int m3132n() { if (this.f2268r) { return this.f2269s; } m3141e(); int i = this.f2258h; Drawable[] drawableArr = this.f2257g; int opacity = i > 0 ? drawableArr[0].getOpacity() : -2; for (int i2 = 1; i2 < i; i2++) { opacity = Drawable.resolveOpacity(opacity, drawableArr[i2].getOpacity()); } this.f2269s = opacity; this.f2268r = true; return opacity; } /* renamed from: o */ public void mo3112o(int i, int i2) { Drawable[] drawableArr = new Drawable[i2]; Drawable[] drawableArr2 = this.f2257g; if (drawableArr2 != null) { System.arraycopy(drawableArr2, 0, drawableArr, 0, i); } this.f2257g = drawableArr; } /* renamed from: p */ public void m3131p() { this.f2268r = false; this.f2270t = false; } /* renamed from: q */ public final boolean m3130q() { return this.f2262l; } /* renamed from: r */ public abstract void mo3111r(); /* renamed from: s */ public final Drawable m3129s(Drawable drawable) { if (Build.VERSION.SDK_INT >= 23) { C0012f.m5087l(drawable, this.f2276z); } Drawable mutate = drawable.mutate(); mutate.setCallback(this.f2251a); return mutate; } /* renamed from: t */ public final void m3128t(boolean z) { this.f2262l = z; } /* renamed from: u */ public final void m3127u(int i) { this.f2242A = i; } /* renamed from: v */ public final void m3126v(int i) { this.f2243B = i; } /* renamed from: w */ public final boolean m3125w(int i, int i2) { int i3 = this.f2258h; Drawable[] drawableArr = this.f2257g; boolean z = false; for (int i4 = 0; i4 < i3; i4++) { Drawable drawable = drawableArr[i4]; if (drawable != null) { boolean m5087l = Build.VERSION.SDK_INT >= 23 ? C0012f.m5087l(drawable, i) : false; if (i4 == i2) { z = m5087l; } } } this.f2276z = i; return z; } /* renamed from: x */ public final void m3124x(boolean z) { this.f2259i = z; } /* renamed from: y */ public final void m3123y(Resources resources) { if (resources != null) { this.f2252b = resources; int m3153f = C0675b.m3153f(resources, this.f2253c); int i = this.f2253c; this.f2253c = m3153f; if (i != m3153f) { this.f2263m = false; this.f2260j = false; } } } } /* renamed from: f */ public static int m3153f(Resources resources, int i) { if (resources != null) { i = resources.getDisplayMetrics().densityDpi; } if (i == 0) { return 160; } return i; } /* JADX WARN: Removed duplicated region for block: B:14:0x003d */ /* JADX WARN: Removed duplicated region for block: B:23:0x0066 A[ADDED_TO_REGION] */ /* JADX WARN: Removed duplicated region for block: B:26:? A[ADDED_TO_REGION, RETURN, SYNTHETIC] */ /* renamed from: a */ /* Code decompiled incorrectly, please refer to instructions dump. */ public void m3157a(boolean z) { boolean z2; Drawable drawable; boolean z3 = true; this.f2233i = true; long uptimeMillis = SystemClock.uptimeMillis(); Drawable drawable2 = this.f2230f; if (drawable2 != null) { long j = this.f2237m; if (j != 0) { if (j <= uptimeMillis) { drawable2.setAlpha(this.f2232h); } else { drawable2.setAlpha(((255 - (((int) ((j - uptimeMillis) * 255)) / this.f2228d.f2242A)) * this.f2232h) / 255); z2 = true; drawable = this.f2231g; if (drawable != null) { long j2 = this.f2238n; if (j2 != 0) { if (j2 > uptimeMillis) { drawable.setAlpha(((((int) ((j2 - uptimeMillis) * 255)) / this.f2228d.f2243B) * this.f2232h) / 255); if (z && z3) { scheduleSelf(this.f2236l, uptimeMillis + 16); return; } return; } drawable.setVisible(false, false); this.f2231g = null; } z3 = z2; if (z) { return; } return; } this.f2238n = 0L; z3 = z2; if (z) { } } } z2 = false; drawable = this.f2231g; if (drawable != null) { } this.f2238n = 0L; z3 = z2; if (z) { } } this.f2237m = 0L; z2 = false; drawable = this.f2231g; if (drawable != null) { } this.f2238n = 0L; z3 = z2; if (z) { } } @Override // android.graphics.drawable.Drawable public void applyTheme(Resources.Theme theme) { this.f2228d.m3144b(theme); } /* renamed from: b */ public AbstractC0679d mo3117b() { throw null; } /* renamed from: c */ public int m3156c() { return this.f2234j; } @Override // android.graphics.drawable.Drawable public boolean canApplyTheme() { return this.f2228d.canApplyTheme(); } /* renamed from: d */ public final void m3155d(Drawable drawable) { if (this.f2239o == null) { this.f2239o = new C0678c(); } drawable.setCallback(this.f2239o.m3146b(drawable.getCallback())); try { if (this.f2228d.f2242A <= 0 && this.f2233i) { drawable.setAlpha(this.f2232h); } AbstractC0679d abstractC0679d = this.f2228d; if (abstractC0679d.f2246E) { drawable.setColorFilter(abstractC0679d.f2245D); } else { if (abstractC0679d.f2249H) { C0012f.m5085n(drawable, abstractC0679d.f2247F); } AbstractC0679d abstractC0679d2 = this.f2228d; if (abstractC0679d2.f2250I) { C0012f.m5084o(drawable, abstractC0679d2.f2248G); } } drawable.setVisible(isVisible(), true); drawable.setDither(this.f2228d.f2274x); drawable.setState(getState()); drawable.setLevel(getLevel()); drawable.setBounds(getBounds()); int i = Build.VERSION.SDK_INT; if (i >= 23) { C0012f.m5087l(drawable, C0012f.m5094e(this)); } if (i >= 19) { C0012f.m5090i(drawable, this.f2228d.f2244C); } Rect rect = this.f2229e; if (i >= 21 && rect != null) { C0012f.m5088k(drawable, rect.left, rect.top, rect.right, rect.bottom); } } finally { drawable.setCallback(this.f2239o.m3147a()); } } @Override // android.graphics.drawable.Drawable public void draw(Canvas canvas) { Drawable drawable = this.f2230f; if (drawable != null) { drawable.draw(canvas); } Drawable drawable2 = this.f2231g; if (drawable2 != null) { drawable2.draw(canvas); } } /* renamed from: e */ public final boolean m3154e() { return isAutoMirrored() && C0012f.m5094e(this) == 1; } /* JADX WARN: Removed duplicated region for block: B:33:0x006b */ /* JADX WARN: Removed duplicated region for block: B:34:0x0073 */ /* renamed from: g */ /* Code decompiled incorrectly, please refer to instructions dump. */ public boolean m3152g(int i) { Runnable runnable; if (i == this.f2234j) { return false; } long uptimeMillis = SystemClock.uptimeMillis(); if (this.f2228d.f2243B > 0) { Drawable drawable = this.f2231g; if (drawable != null) { drawable.setVisible(false, false); } Drawable drawable2 = this.f2230f; if (drawable2 != null) { this.f2231g = drawable2; this.f2238n = this.f2228d.f2243B + uptimeMillis; } else { this.f2231g = null; this.f2238n = 0L; } } else { Drawable drawable3 = this.f2230f; if (drawable3 != null) { drawable3.setVisible(false, false); } } if (i >= 0) { AbstractC0679d abstractC0679d = this.f2228d; if (i < abstractC0679d.f2258h) { Drawable m3139g = abstractC0679d.m3139g(i); this.f2230f = m3139g; this.f2234j = i; if (m3139g != null) { int i2 = this.f2228d.f2242A; if (i2 > 0) { this.f2237m = uptimeMillis + i2; } m3155d(m3139g); } if (this.f2237m == 0 || this.f2238n != 0) { runnable = this.f2236l; if (runnable != null) { this.f2236l = new RunnableC0676a(); } else { unscheduleSelf(runnable); } m3157a(true); } invalidateSelf(); return true; } } this.f2230f = null; this.f2234j = -1; if (this.f2237m == 0) { } runnable = this.f2236l; if (runnable != null) { } m3157a(true); invalidateSelf(); return true; } @Override // android.graphics.drawable.Drawable public int getAlpha() { return this.f2232h; } @Override // android.graphics.drawable.Drawable public int getChangingConfigurations() { return super.getChangingConfigurations() | this.f2228d.getChangingConfigurations(); } @Override // android.graphics.drawable.Drawable public final Drawable.ConstantState getConstantState() { if (this.f2228d.m3143c()) { this.f2228d.f2254d = getChangingConfigurations(); return this.f2228d; } return null; } @Override // android.graphics.drawable.Drawable public Drawable getCurrent() { return this.f2230f; } @Override // android.graphics.drawable.Drawable public void getHotspotBounds(Rect rect) { Rect rect2 = this.f2229e; if (rect2 != null) { rect.set(rect2); } else { super.getHotspotBounds(rect); } } @Override // android.graphics.drawable.Drawable public int getIntrinsicHeight() { if (this.f2228d.m3130q()) { return this.f2228d.m3137i(); } Drawable drawable = this.f2230f; if (drawable != null) { return drawable.getIntrinsicHeight(); } return -1; } @Override // android.graphics.drawable.Drawable public int getIntrinsicWidth() { if (this.f2228d.m3130q()) { return this.f2228d.m3133m(); } Drawable drawable = this.f2230f; if (drawable != null) { return drawable.getIntrinsicWidth(); } return -1; } @Override // android.graphics.drawable.Drawable public int getMinimumHeight() { if (this.f2228d.m3130q()) { return this.f2228d.m3136j(); } Drawable drawable = this.f2230f; if (drawable != null) { return drawable.getMinimumHeight(); } return 0; } @Override // android.graphics.drawable.Drawable public int getMinimumWidth() { if (this.f2228d.m3130q()) { return this.f2228d.m3135k(); } Drawable drawable = this.f2230f; if (drawable != null) { return drawable.getMinimumWidth(); } return 0; } @Override // android.graphics.drawable.Drawable public int getOpacity() { Drawable drawable = this.f2230f; if (drawable == null || !drawable.isVisible()) { return -2; } return this.f2228d.m3132n(); } @Override // android.graphics.drawable.Drawable public void getOutline(Outline outline) { Drawable drawable = this.f2230f; if (drawable != null) { C0677b.m3149b(drawable, outline); } } @Override // android.graphics.drawable.Drawable public boolean getPadding(Rect rect) { boolean padding; Rect m3134l = this.f2228d.m3134l(); if (m3134l != null) { rect.set(m3134l); padding = (m3134l.right | ((m3134l.left | m3134l.top) | m3134l.bottom)) != 0; } else { Drawable drawable = this.f2230f; padding = drawable != null ? drawable.getPadding(rect) : super.getPadding(rect); } if (m3154e()) { int i = rect.left; rect.left = rect.right; rect.right = i; } return padding; } /* renamed from: h */ public void mo3116h(AbstractC0679d abstractC0679d) { this.f2228d = abstractC0679d; int i = this.f2234j; if (i >= 0) { Drawable m3139g = abstractC0679d.m3139g(i); this.f2230f = m3139g; if (m3139g != null) { m3155d(m3139g); } } this.f2231g = null; } /* renamed from: i */ public final void m3151i(Resources resources) { this.f2228d.m3123y(resources); } @Override // android.graphics.drawable.Drawable.Callback public void invalidateDrawable(Drawable drawable) { AbstractC0679d abstractC0679d = this.f2228d; if (abstractC0679d != null) { abstractC0679d.m3131p(); } if (drawable != this.f2230f || getCallback() == null) { return; } getCallback().invalidateDrawable(this); } @Override // android.graphics.drawable.Drawable public boolean isAutoMirrored() { return this.f2228d.f2244C; } @Override // android.graphics.drawable.Drawable public void jumpToCurrentState() { boolean z; Drawable drawable = this.f2231g; boolean z2 = true; if (drawable != null) { drawable.jumpToCurrentState(); this.f2231g = null; z = true; } else { z = false; } Drawable drawable2 = this.f2230f; if (drawable2 != null) { drawable2.jumpToCurrentState(); if (this.f2233i) { this.f2230f.setAlpha(this.f2232h); } } if (this.f2238n != 0) { this.f2238n = 0L; z = true; } if (this.f2237m != 0) { this.f2237m = 0L; } else { z2 = z; } if (z2) { invalidateSelf(); } } @Override // android.graphics.drawable.Drawable public Drawable mutate() { if (!this.f2235k && super.mutate() == this) { AbstractC0679d mo3117b = mo3117b(); mo3117b.mo3111r(); mo3116h(mo3117b); this.f2235k = true; } return this; } @Override // android.graphics.drawable.Drawable public void onBoundsChange(Rect rect) { Drawable drawable = this.f2231g; if (drawable != null) { drawable.setBounds(rect); } Drawable drawable2 = this.f2230f; if (drawable2 != null) { drawable2.setBounds(rect); } } @Override // android.graphics.drawable.Drawable public boolean onLayoutDirectionChanged(int i) { return this.f2228d.m3125w(i, m3156c()); } @Override // android.graphics.drawable.Drawable public boolean onLevelChange(int i) { Drawable drawable = this.f2231g; if (drawable != null) { return drawable.setLevel(i); } Drawable drawable2 = this.f2230f; if (drawable2 != null) { return drawable2.setLevel(i); } return false; } @Override // android.graphics.drawable.Drawable public boolean onStateChange(int[] iArr) { Drawable drawable = this.f2231g; if (drawable != null) { return drawable.setState(iArr); } Drawable drawable2 = this.f2230f; if (drawable2 != null) { return drawable2.setState(iArr); } return false; } @Override // android.graphics.drawable.Drawable.Callback public void scheduleDrawable(Drawable drawable, Runnable runnable, long j) { if (drawable != this.f2230f || getCallback() == null) { return; } getCallback().scheduleDrawable(this, runnable, j); } @Override // android.graphics.drawable.Drawable public void setAlpha(int i) { if (this.f2233i && this.f2232h == i) { return; } this.f2233i = true; this.f2232h = i; Drawable drawable = this.f2230f; if (drawable != null) { if (this.f2237m == 0) { drawable.setAlpha(i); } else { m3157a(false); } } } @Override // android.graphics.drawable.Drawable public void setAutoMirrored(boolean z) { AbstractC0679d abstractC0679d = this.f2228d; if (abstractC0679d.f2244C != z) { abstractC0679d.f2244C = z; Drawable drawable = this.f2230f; if (drawable != null) { C0012f.m5090i(drawable, z); } } } @Override // android.graphics.drawable.Drawable public void setColorFilter(ColorFilter colorFilter) { AbstractC0679d abstractC0679d = this.f2228d; abstractC0679d.f2246E = true; if (abstractC0679d.f2245D != colorFilter) { abstractC0679d.f2245D = colorFilter; Drawable drawable = this.f2230f; if (drawable != null) { drawable.setColorFilter(colorFilter); } } } @Override // android.graphics.drawable.Drawable public void setDither(boolean z) { AbstractC0679d abstractC0679d = this.f2228d; if (abstractC0679d.f2274x != z) { abstractC0679d.f2274x = z; Drawable drawable = this.f2230f; if (drawable != null) { drawable.setDither(z); } } } @Override // android.graphics.drawable.Drawable public void setHotspot(float f, float f2) { Drawable drawable = this.f2230f; if (drawable != null) { C0012f.m5089j(drawable, f, f2); } } @Override // android.graphics.drawable.Drawable public void setHotspotBounds(int i, int i2, int i3, int i4) { Rect rect = this.f2229e; if (rect == null) { this.f2229e = new Rect(i, i2, i3, i4); } else { rect.set(i, i2, i3, i4); } Drawable drawable = this.f2230f; if (drawable != null) { C0012f.m5088k(drawable, i, i2, i3, i4); } } @Override // android.graphics.drawable.Drawable public void setTint(int i) { setTintList(ColorStateList.valueOf(i)); } @Override // android.graphics.drawable.Drawable public void setTintList(ColorStateList colorStateList) { AbstractC0679d abstractC0679d = this.f2228d; abstractC0679d.f2249H = true; if (abstractC0679d.f2247F != colorStateList) { abstractC0679d.f2247F = colorStateList; C0012f.m5085n(this.f2230f, colorStateList); } } @Override // android.graphics.drawable.Drawable public void setTintMode(PorterDuff.Mode mode) { AbstractC0679d abstractC0679d = this.f2228d; abstractC0679d.f2250I = true; if (abstractC0679d.f2248G != mode) { abstractC0679d.f2248G = mode; C0012f.m5084o(this.f2230f, mode); } } @Override // android.graphics.drawable.Drawable public boolean setVisible(boolean z, boolean z2) { boolean visible = super.setVisible(z, z2); Drawable drawable = this.f2231g; if (drawable != null) { drawable.setVisible(z, z2); } Drawable drawable2 = this.f2230f; if (drawable2 != null) { drawable2.setVisible(z, z2); } return visible; } @Override // android.graphics.drawable.Drawable.Callback public void unscheduleDrawable(Drawable drawable, Runnable runnable) { if (drawable != this.f2230f || getCallback() == null) { return; } getCallback().unscheduleDrawable(this, runnable); } }