CrackMe.apk
Download file
package com.facebook.react.views.view;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.LayerDrawable;
import android.view.View;
import androidx.core.view.ViewCompat;
public class ReactViewBackgroundManager {
private ReactViewBackgroundDrawable mReactBackgroundDrawable;
private View mView;
public ReactViewBackgroundManager(View view) {
this.mView = view;
}
public void cleanup() {
ViewCompat.setBackground(this.mView, (Drawable) null);
this.mView = null;
this.mReactBackgroundDrawable = null;
}
private ReactViewBackgroundDrawable getOrCreateReactViewBackground() {
if (this.mReactBackgroundDrawable == null) {
this.mReactBackgroundDrawable = new ReactViewBackgroundDrawable(this.mView.getContext());
Drawable background = this.mView.getBackground();
ViewCompat.setBackground(this.mView, (Drawable) null);
if (background == null) {
ViewCompat.setBackground(this.mView, this.mReactBackgroundDrawable);
} else {
ViewCompat.setBackground(this.mView, new LayerDrawable(new Drawable[]{this.mReactBackgroundDrawable, background}));
}
}
return this.mReactBackgroundDrawable;
}
public void setBackgroundColor(int i) {
if (i != 0 || this.mReactBackgroundDrawable != null) {
getOrCreateReactViewBackground().setColor(i);
}
}
public void setBorderWidth(int i, float f) {
getOrCreateReactViewBackground().setBorderWidth(i, f);
}
public void setBorderColor(int i, float f, float f2) {
getOrCreateReactViewBackground().setBorderColor(i, f, f2);
}
public int getBorderColor(int i) {
return getOrCreateReactViewBackground().getBorderColor(i);
}
public void setBorderRadius(float f) {
getOrCreateReactViewBackground().setRadius(f);
}
public void setBorderRadius(float f, int i) {
getOrCreateReactViewBackground().setRadius(f, i);
}
public void setBorderStyle(String str) {
getOrCreateReactViewBackground().setBorderStyle(str);
}
}
Download file