CrackMe.apk
Download file
package androidx.core.graphics.drawable;
import android.content.res.ColorStateList;
import android.content.res.Resources;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.PorterDuff;
import android.graphics.Rect;
import android.graphics.Region;
import android.graphics.drawable.Drawable;
class WrappedDrawableApi14 extends Drawable implements Drawable.Callback, WrappedDrawable, TintAwareDrawable {
static final PorterDuff.Mode DEFAULT_TINT_MODE = PorterDuff.Mode.SRC_IN;
private boolean mColorFilterSet;
private int mCurrentColor;
private PorterDuff.Mode mCurrentMode;
Drawable mDrawable;
private boolean mMutated;
WrappedDrawableState mState;
/* access modifiers changed from: protected */
public boolean isCompatTintEnabled() {
return true;
}
WrappedDrawableApi14(WrappedDrawableState wrappedDrawableState, Resources resources) {
this.mState = wrappedDrawableState;
updateLocalState(resources);
}
WrappedDrawableApi14(Drawable drawable) {
this.mState = mutateConstantState();
setWrappedDrawable(drawable);
}
private void updateLocalState(Resources resources) {
WrappedDrawableState wrappedDrawableState = this.mState;
if (wrappedDrawableState != null && wrappedDrawableState.mDrawableState != null) {
setWrappedDrawable(this.mState.mDrawableState.newDrawable(resources));
}
}
public void jumpToCurrentState() {
this.mDrawable.jumpToCurrentState();
}
public void draw(Canvas canvas) {
this.mDrawable.draw(canvas);
}
/* access modifiers changed from: protected */
public void onBoundsChange(Rect rect) {
Drawable drawable = this.mDrawable;
if (drawable != null) {
drawable.setBounds(rect);
}
}
public void setChangingConfigurations(int i) {
this.mDrawable.setChangingConfigurations(i);
}
public int getChangingConfigurations() {
int changingConfigurations = super.getChangingConfigurations();
WrappedDrawableState wrappedDrawableState = this.mState;
return changingConfigurations | (wrappedDrawableState != null ? wrappedDrawableState.getChangingConfigurations() : 0) | this.mDrawable.getChangingConfigurations();
}
public void setDither(boolean z) {
this.mDrawable.setDither(z);
}
public void setFilterBitmap(boolean z) {
this.mDrawable.setFilterBitmap(z);
}
public void setAlpha(int i) {
this.mDrawable.setAlpha(i);
}
public void setColorFilter(ColorFilter colorFilter) {
this.mDrawable.setColorFilter(colorFilter);
}
/* JADX WARNING: Code restructure failed: missing block: B:2:0x0006, code lost:
r0 = r1.mState;
*/
/* Code decompiled incorrectly, please refer to instructions dump. */
public boolean isStateful() {
/*
r1 = this;
boolean r0 = r1.isCompatTintEnabled()
if (r0 == 0) goto L_0x000d
androidx.core.graphics.drawable.WrappedDrawableState r0 = r1.mState
if (r0 == 0) goto L_0x000d
android.content.res.ColorStateList r0 = r0.mTint
goto L_0x000e
L_0x000d:
r0 = 0
L_0x000e:
if (r0 == 0) goto L_0x0016
boolean r0 = r0.isStateful()
if (r0 != 0) goto L_0x001e
L_0x0016:
android.graphics.drawable.Drawable r0 = r1.mDrawable
boolean r0 = r0.isStateful()
if (r0 == 0) goto L_0x0020
L_0x001e:
r0 = 1
goto L_0x0021
L_0x0020:
r0 = 0
L_0x0021:
return r0
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.core.graphics.drawable.WrappedDrawableApi14.isStateful():boolean");
}
public boolean setState(int[] iArr) {
return updateTint(iArr) || this.mDrawable.setState(iArr);
}
public int[] getState() {
return this.mDrawable.getState();
}
public Drawable getCurrent() {
return this.mDrawable.getCurrent();
}
public boolean setVisible(boolean z, boolean z2) {
return super.setVisible(z, z2) || this.mDrawable.setVisible(z, z2);
}
public int getOpacity() {
return this.mDrawable.getOpacity();
}
public Region getTransparentRegion() {
return this.mDrawable.getTransparentRegion();
}
public int getIntrinsicWidth() {
return this.mDrawable.getIntrinsicWidth();
}
public int getIntrinsicHeight() {
return this.mDrawable.getIntrinsicHeight();
}
public int getMinimumWidth() {
return this.mDrawable.getMinimumWidth();
}
public int getMinimumHeight() {
return this.mDrawable.getMinimumHeight();
}
public boolean getPadding(Rect rect) {
return this.mDrawable.getPadding(rect);
}
public void setAutoMirrored(boolean z) {
DrawableCompat.setAutoMirrored(this.mDrawable, z);
}
public boolean isAutoMirrored() {
return DrawableCompat.isAutoMirrored(this.mDrawable);
}
public boolean onLayoutDirectionChanged(int i) {
return DrawableCompat.setLayoutDirection(this.mDrawable, i);
}
public int getLayoutDirection() {
return DrawableCompat.getLayoutDirection(this.mDrawable);
}
public Drawable.ConstantState getConstantState() {
WrappedDrawableState wrappedDrawableState = this.mState;
if (wrappedDrawableState == null || !wrappedDrawableState.canConstantState()) {
return null;
}
this.mState.mChangingConfigurations = getChangingConfigurations();
return this.mState;
}
public Drawable mutate() {
if (!this.mMutated && super.mutate() == this) {
this.mState = mutateConstantState();
Drawable drawable = this.mDrawable;
if (drawable != null) {
drawable.mutate();
}
WrappedDrawableState wrappedDrawableState = this.mState;
if (wrappedDrawableState != null) {
Drawable drawable2 = this.mDrawable;
wrappedDrawableState.mDrawableState = drawable2 != null ? drawable2.getConstantState() : null;
}
this.mMutated = true;
}
return this;
}
private WrappedDrawableState mutateConstantState() {
return new WrappedDrawableState(this.mState);
}
public void invalidateDrawable(Drawable drawable) {
invalidateSelf();
}
public void scheduleDrawable(Drawable drawable, Runnable runnable, long j) {
scheduleSelf(runnable, j);
}
public void unscheduleDrawable(Drawable drawable, Runnable runnable) {
unscheduleSelf(runnable);
}
/* access modifiers changed from: protected */
public boolean onLevelChange(int i) {
return this.mDrawable.setLevel(i);
}
public void setTint(int i) {
setTintList(ColorStateList.valueOf(i));
}
public void setTintList(ColorStateList colorStateList) {
this.mState.mTint = colorStateList;
updateTint(getState());
}
public void setTintMode(PorterDuff.Mode mode) {
this.mState.mTintMode = mode;
updateTint(getState());
}
private boolean updateTint(int[] iArr) {
if (!isCompatTintEnabled()) {
return false;
}
ColorStateList colorStateList = this.mState.mTint;
PorterDuff.Mode mode = this.mState.mTintMode;
if (colorStateList == null || mode == null) {
this.mColorFilterSet = false;
clearColorFilter();
} else {
int colorForState = colorStateList.getColorForState(iArr, colorStateList.getDefaultColor());
if (!(this.mColorFilterSet && colorForState == this.mCurrentColor && mode == this.mCurrentMode)) {
setColorFilter(colorForState, mode);
this.mCurrentColor = colorForState;
this.mCurrentMode = mode;
this.mColorFilterSet = true;
return true;
}
}
return false;
}
public final Drawable getWrappedDrawable() {
return this.mDrawable;
}
public final void setWrappedDrawable(Drawable drawable) {
Drawable drawable2 = this.mDrawable;
if (drawable2 != null) {
drawable2.setCallback((Drawable.Callback) null);
}
this.mDrawable = drawable;
if (drawable != null) {
drawable.setCallback(this);
setVisible(drawable.isVisible(), true);
setState(drawable.getState());
setLevel(drawable.getLevel());
setBounds(drawable.getBounds());
WrappedDrawableState wrappedDrawableState = this.mState;
if (wrappedDrawableState != null) {
wrappedDrawableState.mDrawableState = drawable.getConstantState();
}
}
invalidateSelf();
}
}
Download file