Pou v2.3版本的 MD5 值为:708c0a2665eff4abcf79f7fc7f34aa0b
以下内容为反编译后的 CompraActivity.java 源代码,内容仅作参考
package com.charlezin.free;
import android.app.Activity;
import android.app.ActivityOptions;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.GradientDrawable;
import android.net.Uri;
import android.os.Bundle;
import android.util.SparseBooleanArray;
import android.util.TypedValue;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.ScaleAnimation;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import com.google.firebase.FirebaseApp;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Random;
public class CompraActivity extends AppCompatActivity {
private Button button1;
private LinearLayout linear1;
private LinearLayout linear2;
private LinearLayout linear3;
private Intent login = new Intent();
private TextView textview1;
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.compra);
initialize(bundle);
FirebaseApp.initializeApp(this);
initializeLogic();
}
private void initialize(Bundle bundle) {
this.linear1 = (LinearLayout) findViewById(R.id.linear1);
this.linear2 = (LinearLayout) findViewById(R.id.linear2);
this.linear3 = (LinearLayout) findViewById(R.id.linear3);
this.button1 = (Button) findViewById(R.id.button1);
this.textview1 = (TextView) findViewById(R.id.textview1);
this.button1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
ScaleAnimation scaleAnimation = new ScaleAnimation(0.9f, 1.0f, 0.9f, 1.0f, 1, 0.5f, 1, 0.7f);
scaleAnimation.setDuration(300L);
scaleAnimation.setFillAfter(true);
CompraActivity.this.button1.startAnimation(scaleAnimation);
CompraActivity.this.login.setAction("android.intent.action.VIEW");
CompraActivity.this.login.setData(Uri.parse("http://wa.me/5594992098678"));
CompraActivity.this.startActivity(CompraActivity.this.login);
}
});
}
private void initializeLogic() {
if (getIntent().getBooleanExtra("dialogTheme", true)) {
getWindow().getDecorView().setBackgroundResource(17170445);
GradientDrawable gradientDrawable = new GradientDrawable();
gradientDrawable.setColor(0);
gradientDrawable.setCornerRadius(((int) getApplicationContext().getResources().getDisplayMetrics().density) * 15);
((ViewGroup) getWindow().getDecorView()).getChildAt(0).setBackground(gradientDrawable);
setFinishOnTouchOutside(false);
}
GradientDrawable gradientDrawable2 = new GradientDrawable();
gradientDrawable2.setColor(Color.parseColor("#FF000000"));
gradientDrawable2.setCornerRadius(13.0f);
this.linear2.setBackground(gradientDrawable2);
GradientDrawable gradientDrawable3 = new GradientDrawable();
gradientDrawable3.setColor(Color.parseColor("#FF2196F3"));
gradientDrawable3.setCornerRadius(13.0f);
this.button1.setBackground(gradientDrawable3);
}
public void _dialogTheme() {
}
@Override
public void setContentView(int i) {
Class<?> cls = null;
if (getIntent().getBooleanExtra("dialogTheme", true)) {
supportRequestWindowFeature(1);
setTheme(2131755532);
setFinishOnTouchOutside(true);
try {
Method declaredMethod = Activity.class.getDeclaredMethod("getActivityOptions", new Class[0]);
declaredMethod.setAccessible(true);
Object invoke = declaredMethod.invoke(this, new Object[0]);
Class<?>[] declaredClasses = Activity.class.getDeclaredClasses();
int length = declaredClasses.length;
int i2 = 0;
while (i2 < length) {
Class<?> cls2 = declaredClasses[i2];
if (!cls2.getSimpleName().contains("TranslucentConversionListener")) {
cls2 = cls;
}
i2++;
cls = cls2;
}
Method declaredMethod2 = Activity.class.getDeclaredMethod("convertToTranslucent", cls, ActivityOptions.class);
declaredMethod2.setAccessible(true);
declaredMethod2.invoke(this, null, invoke);
} catch (Throwable th) {
}
}
super.setContentView(i);
}
@Deprecated
public void showMessage(String str) {
Toast.makeText(getApplicationContext(), str, 0).show();
}
@Deprecated
public int getLocationX(View view) {
int[] iArr = new int[2];
view.getLocationInWindow(iArr);
return iArr[0];
}
@Deprecated
public int getLocationY(View view) {
int[] iArr = new int[2];
view.getLocationInWindow(iArr);
return iArr[1];
}
@Deprecated
public int getRandom(int i, int i2) {
return new Random().nextInt((i2 - i) + 1) + i;
}
@Deprecated
public ArrayList<Double> getCheckedItemPositionsToArray(ListView listView) {
ArrayList<Double> arrayList = new ArrayList<>();
SparseBooleanArray checkedItemPositions = listView.getCheckedItemPositions();
for (int i = 0; i < checkedItemPositions.size(); i++) {
if (checkedItemPositions.valueAt(i)) {
arrayList.add(Double.valueOf(checkedItemPositions.keyAt(i)));
}
}
return arrayList;
}
@Deprecated
public float getDip(int i) {
return TypedValue.applyDimension(1, i, getResources().getDisplayMetrics());
}
@Deprecated
public int getDisplayWidthPixels() {
return getResources().getDisplayMetrics().widthPixels;
}
@Deprecated
public int getDisplayHeightPixels() {
return getResources().getDisplayMetrics().heightPixels;
}
}