ZStore v1.7版本的 MD5 值为:ca9bb200afd8d690876bd39318f8215c
以下内容为反编译后的 AboutActivity.java 源代码,内容仅作参考
package com.zackiestudios.zstore;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.content.res.ColorStateList;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.GradientDrawable;
import android.graphics.drawable.RippleDrawable;
import android.net.Uri;
import android.os.Bundle;
import android.util.SparseBooleanArray;
import android.util.TypedValue;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.ScrollView;
import android.widget.TextView;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.net.MailTo;
import androidx.exifinterface.media.ExifInterface;
import com.google.android.gms.tasks.OnCompleteListener;
import com.google.android.gms.tasks.Task;
import com.google.firebase.FirebaseApp;
import com.google.firebase.auth.AuthResult;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.database.ChildEventListener;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.GenericTypeIndicator;
import com.zackiestudios.zstore.RequestNetwork;
import de.hdodenhof.circleimageview.CircleImageView;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Random;
public class AboutActivity extends AppCompatActivity {
private ChildEventListener _Contact_child_listener;
private OnCompleteListener<AuthResult> _auth_create_user_listener;
private OnCompleteListener<Void> _auth_reset_password_listener;
private OnCompleteListener<AuthResult> _auth_sign_in_listener;
private RequestNetwork.RequestListener _network_request_listener;
private FirebaseAuth auth;
private OnCompleteListener<Void> auth_deleteUserListener;
private OnCompleteListener<Void> auth_emailVerificationSentListener;
private OnCompleteListener<AuthResult> auth_googleSignInListener;
private OnCompleteListener<AuthResult> auth_phoneAuthListener;
private OnCompleteListener<Void> auth_updateEmailListener;
private OnCompleteListener<Void> auth_updatePasswordListener;
private OnCompleteListener<Void> auth_updateProfileListener;
private CircleImageView circleimageview1;
private LinearLayout d1;
private ImageView imageview1;
private ImageView imageview10;
private ImageView imageview2;
private ImageView imageview3;
private ImageView imageview4;
private ImageView imageview6;
private ImageView imageview8;
private LinearLayout linear1;
private LinearLayout linear13;
private LinearLayout linear15;
private LinearLayout linear2;
private LinearLayout linear4;
private LinearLayout linear5;
private LinearLayout linear6;
private LinearLayout linear7;
private LinearLayout linear9;
private LinearLayout linear_email;
private LinearLayout linear_fb;
private LinearLayout linear_tele;
private LinearLayout linear_ver;
private LinearLayout linear_web;
private LinearLayout linear_yt;
private RequestNetwork network;
private TextView textview1;
private TextView textview10;
private TextView textview11;
private TextView textview14;
private TextView textview16;
private TextView textview18;
private TextView textview2;
private TextView textview3;
private TextView textview4;
private TextView textview5;
private TextView textview8;
private TextView textview9;
private SharedPreferences users;
private ScrollView vscroll1;
private FirebaseDatabase _firebase = FirebaseDatabase.getInstance();
private String subject = "";
private String body = "";
private String packageName = "";
private String app_version = "";
private String Facebook = "";
private String YouTube = "";
private String Telegram = "";
private String Email = "";
private String Website = "";
private Intent web_jump = new Intent();
private DatabaseReference Contact = this._firebase.getReference("CT");
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.about);
initialize(bundle);
FirebaseApp.initializeApp(this);
initializeLogic();
}
private void initialize(Bundle bundle) {
this.linear1 = (LinearLayout) findViewById(R.id.linear1);
this.vscroll1 = (ScrollView) findViewById(R.id.vscroll1);
this.imageview2 = (ImageView) findViewById(R.id.imageview2);
this.textview1 = (TextView) findViewById(R.id.textview1);
this.linear2 = (LinearLayout) findViewById(R.id.linear2);
this.d1 = (LinearLayout) findViewById(R.id.d1);
this.linear4 = (LinearLayout) findViewById(R.id.linear4);
this.linear6 = (LinearLayout) findViewById(R.id.linear6);
this.linear5 = (LinearLayout) findViewById(R.id.linear5);
this.linear_ver = (LinearLayout) findViewById(R.id.linear_ver);
this.linear_email = (LinearLayout) findViewById(R.id.linear_email);
this.linear_web = (LinearLayout) findViewById(R.id.linear_web);
this.linear_fb = (LinearLayout) findViewById(R.id.linear_fb);
this.linear_tele = (LinearLayout) findViewById(R.id.linear_tele);
this.linear_yt = (LinearLayout) findViewById(R.id.linear_yt);
this.circleimageview1 = (CircleImageView) findViewById(R.id.circleimageview1);
this.textview2 = (TextView) findViewById(R.id.textview2);
this.linear7 = (LinearLayout) findViewById(R.id.linear7);
this.textview3 = (TextView) findViewById(R.id.textview3);
this.imageview1 = (ImageView) findViewById(R.id.imageview1);
this.linear9 = (LinearLayout) findViewById(R.id.linear9);
this.textview4 = (TextView) findViewById(R.id.textview4);
this.textview5 = (TextView) findViewById(R.id.textview5);
this.imageview3 = (ImageView) findViewById(R.id.imageview3);
this.linear13 = (LinearLayout) findViewById(R.id.linear13);
this.textview8 = (TextView) findViewById(R.id.textview8);
this.textview9 = (TextView) findViewById(R.id.textview9);
this.imageview4 = (ImageView) findViewById(R.id.imageview4);
this.linear15 = (LinearLayout) findViewById(R.id.linear15);
this.textview10 = (TextView) findViewById(R.id.textview10);
this.textview11 = (TextView) findViewById(R.id.textview11);
this.imageview6 = (ImageView) findViewById(R.id.imageview6);
this.textview14 = (TextView) findViewById(R.id.textview14);
this.imageview8 = (ImageView) findViewById(R.id.imageview8);
this.textview16 = (TextView) findViewById(R.id.textview16);
this.imageview10 = (ImageView) findViewById(R.id.imageview10);
this.textview18 = (TextView) findViewById(R.id.textview18);
this.network = new RequestNetwork(this);
this.users = getSharedPreferences("users", 0);
this.auth = FirebaseAuth.getInstance();
this.imageview2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
AboutActivity.this.finish();
}
});
this.linear_fb.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (SketchwareUtil.isConnected(AboutActivity.this.getApplicationContext())) {
if (!AboutActivity.this.Facebook.equals("")) {
AboutActivity.this.web_jump.setAction("android.intent.action.VIEW");
AboutActivity.this.web_jump.setData(Uri.parse(AboutActivity.this.Facebook));
AboutActivity aboutActivity = AboutActivity.this;
aboutActivity.startActivity(aboutActivity.web_jump);
return;
}
SketchwareUtil.showMessage(AboutActivity.this.getApplicationContext(), "Sem Links!");
return;
}
SketchwareUtil.showMessage(AboutActivity.this.getApplicationContext(), "Sem conexão com a Internet!");
}
});
this.linear_tele.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (SketchwareUtil.isConnected(AboutActivity.this.getApplicationContext())) {
if (!AboutActivity.this.Telegram.equals("")) {
AboutActivity.this.web_jump.setAction("android.intent.action.VIEW");
AboutActivity.this.web_jump.setData(Uri.parse(AboutActivity.this.Telegram));
AboutActivity aboutActivity = AboutActivity.this;
aboutActivity.startActivity(aboutActivity.web_jump);
return;
}
SketchwareUtil.showMessage(AboutActivity.this.getApplicationContext(), "Sem Links!");
return;
}
SketchwareUtil.showMessage(AboutActivity.this.getApplicationContext(), "Sem conexão com a Internet!");
}
});
this.linear_yt.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (SketchwareUtil.isConnected(AboutActivity.this.getApplicationContext())) {
if (!AboutActivity.this.YouTube.equals("")) {
AboutActivity.this.web_jump.setAction("android.intent.action.VIEW");
AboutActivity.this.web_jump.setData(Uri.parse(AboutActivity.this.YouTube));
AboutActivity aboutActivity = AboutActivity.this;
aboutActivity.startActivity(aboutActivity.web_jump);
return;
}
SketchwareUtil.showMessage(AboutActivity.this.getApplicationContext(), "Sem Links!");
return;
}
SketchwareUtil.showMessage(AboutActivity.this.getApplicationContext(), "Sem conexão com a Internet!");
}
});
this.linear13.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (SketchwareUtil.isConnected(AboutActivity.this.getApplicationContext())) {
AboutActivity aboutActivity = AboutActivity.this;
aboutActivity._Saif("Suporte da ZStore", "Olá ZStore,\n\n Meu nome é ".concat(aboutActivity.users.getString("name", "").concat("\nMeu e-mail é: ".concat(FirebaseAuth.getInstance().getCurrentUser().getEmail().concat("\n\nE meu problema é ")))));
} else {
SketchwareUtil.showMessage(AboutActivity.this.getApplicationContext(), "Sem conexão com a Internet");
}
}
});
this.linear15.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (SketchwareUtil.isConnected(AboutActivity.this.getApplicationContext())) {
if (!AboutActivity.this.Website.equals("")) {
AboutActivity.this.web_jump.setAction("android.intent.action.VIEW");
AboutActivity.this.web_jump.setData(Uri.parse(AboutActivity.this.Website));
AboutActivity aboutActivity = AboutActivity.this;
aboutActivity.startActivity(aboutActivity.web_jump);
return;
}
SketchwareUtil.showMessage(AboutActivity.this.getApplicationContext(), "Link do site copiado com sucesso!");
AboutActivity aboutActivity2 = AboutActivity.this;
aboutActivity2.getApplicationContext();
((ClipboardManager) aboutActivity2.getSystemService("clipboard")).setPrimaryClip(ClipData.newPlainText("clipboard", "https://zstore.site"));
return;
}
SketchwareUtil.showMessage(AboutActivity.this.getApplicationContext(), "Sem conexão com a Internet!");
}
});
this._network_request_listener = new RequestNetwork.RequestListener() {
@Override
public void onErrorResponse(String str, String str2) {
}
@Override
public void onResponse(String str, String str2, HashMap<String, Object> hashMap) {
}
};
ChildEventListener childEventListener = new ChildEventListener() {
@Override
public void onChildMoved(DataSnapshot dataSnapshot, String str) {
}
@Override
public void onChildAdded(DataSnapshot dataSnapshot, String str) {
GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
};
dataSnapshot.getKey();
HashMap hashMap = (HashMap) dataSnapshot.getValue(genericTypeIndicator);
if (hashMap.containsKey("F")) {
AboutActivity.this.Facebook = hashMap.get("F").toString();
}
if (hashMap.containsKey("Y")) {
AboutActivity.this.YouTube = hashMap.get("Y").toString();
}
if (hashMap.containsKey(ExifInterface.GPS_DIRECTION_TRUE)) {
AboutActivity.this.Telegram = hashMap.get(ExifInterface.GPS_DIRECTION_TRUE).toString();
}
if (hashMap.containsKey(ExifInterface.LONGITUDE_WEST)) {
AboutActivity.this.textview11.setText(hashMap.get(ExifInterface.LONGITUDE_WEST).toString());
}
if (hashMap.containsKey(ExifInterface.LONGITUDE_EAST)) {
AboutActivity.this.textview9.setText(hashMap.get(ExifInterface.LONGITUDE_EAST).toString());
}
}
@Override
public void onChildChanged(DataSnapshot dataSnapshot, String str) {
GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
};
dataSnapshot.getKey();
}
@Override
public void onChildRemoved(DataSnapshot dataSnapshot) {
GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
};
dataSnapshot.getKey();
}
@Override
public void onCancelled(DatabaseError databaseError) {
databaseError.getCode();
databaseError.getMessage();
}
};
this._Contact_child_listener = childEventListener;
this.Contact.addChildEventListener(childEventListener);
this.auth_updateEmailListener = new OnCompleteListener<Void>() {
@Override
public void onComplete(Task<Void> task) {
task.isSuccessful();
if (task.getException() != null) {
task.getException().getMessage();
}
}
};
this.auth_updatePasswordListener = new OnCompleteListener<Void>() {
@Override
public void onComplete(Task<Void> task) {
task.isSuccessful();
if (task.getException() != null) {
task.getException().getMessage();
}
}
};
this.auth_emailVerificationSentListener = new OnCompleteListener<Void>() {
@Override
public void onComplete(Task<Void> task) {
task.isSuccessful();
if (task.getException() != null) {
task.getException().getMessage();
}
}
};
this.auth_deleteUserListener = new OnCompleteListener<Void>() {
@Override
public void onComplete(Task<Void> task) {
task.isSuccessful();
if (task.getException() != null) {
task.getException().getMessage();
}
}
};
this.auth_phoneAuthListener = new OnCompleteListener<AuthResult>() {
@Override
public void onComplete(Task<AuthResult> task) {
task.isSuccessful();
if (task.getException() != null) {
task.getException().getMessage();
}
}
};
this.auth_updateProfileListener = new OnCompleteListener<Void>() {
@Override
public void onComplete(Task<Void> task) {
task.isSuccessful();
if (task.getException() != null) {
task.getException().getMessage();
}
}
};
this.auth_googleSignInListener = new OnCompleteListener<AuthResult>() {
@Override
public void onComplete(Task<AuthResult> task) {
task.isSuccessful();
if (task.getException() != null) {
task.getException().getMessage();
}
}
};
this._auth_create_user_listener = new OnCompleteListener<AuthResult>() {
@Override
public void onComplete(Task<AuthResult> task) {
task.isSuccessful();
if (task.getException() != null) {
task.getException().getMessage();
}
}
};
this._auth_sign_in_listener = new OnCompleteListener<AuthResult>() {
@Override
public void onComplete(Task<AuthResult> task) {
task.isSuccessful();
if (task.getException() != null) {
task.getException().getMessage();
}
}
};
this._auth_reset_password_listener = new OnCompleteListener<Void>() {
@Override
public void onComplete(Task<Void> task) {
task.isSuccessful();
}
};
}
private void initializeLogic() {
getWindow().getDecorView().setSystemUiVisibility(8192);
getWindow().setStatusBarColor(-1);
this.linear1.setElevation(7.0f);
this.network.startRequestNetwork("GET", "https://www.google.com", "ZStore Yt", this._network_request_listener);
this.packageName = new MainActivity().getClass().getPackage().getName();
try {
this.app_version = getPackageManager().getPackageInfo("com.zackiestudios.zstore", 1).versionName;
} catch (PackageManager.NameNotFoundException unused) {
}
this.d1.setBackground(new GradientDrawable() {
public GradientDrawable getIns(int i, int i2, int i3, int i4) {
setCornerRadius(i);
setStroke(i2, i3);
setColor(i4);
return this;
}
}.getIns(20, 3, -6381922, -1));
this.textview5.setText(this.app_version);
_round_corner_and_ripple(this.linear_ver, 10.0d, 0.0d, "#FFFFFF", true);
_round_corner_and_ripple(this.linear_email, 10.0d, 0.0d, "#FFFFFF", true);
_round_corner_and_ripple(this.linear_web, 10.0d, 0.0d, "#FFFFFF", true);
_round_corner_and_ripple(this.linear_fb, 10.0d, 0.0d, "#FFFFFF", true);
_round_corner_and_ripple(this.linear_tele, 10.0d, 0.0d, "#FFFFFF", true);
_round_corner_and_ripple(this.linear_yt, 10.0d, 0.0d, "#FFFFFF", true);
_round_corner_and_ripple(this.linear15, 10.0d, 0.0d, "#FFFFFF", true);
_round_corner_and_ripple(this.linear13, 10.0d, 0.0d, "#FFFFFF", true);
}
public void _Saif(String str, String str2) {
this.subject = str;
this.body = str2;
String str3 = MailTo.MAILTO_SCHEME + "kyoubots@gmail.com?&subject=" + Uri.encode(str) + "&body=" + Uri.encode(str2);
Intent intent = new Intent("android.intent.action.VIEW");
intent.setData(Uri.parse(str3));
startActivity(intent);
}
public void _round_corner_and_ripple(View view, double d, double d2, String str, boolean z) {
if (z) {
GradientDrawable gradientDrawable = new GradientDrawable();
gradientDrawable.setColor(Color.parseColor(str));
gradientDrawable.setCornerRadius((int) d);
view.setElevation((int) d2);
Drawable rippleDrawable = new RippleDrawable(new ColorStateList(new int[][]{new int[0]}, new int[]{Color.parseColor("#9e9e9e")}), gradientDrawable, null);
view.setClickable(true);
view.setBackground(rippleDrawable);
return;
}
GradientDrawable gradientDrawable2 = new GradientDrawable();
gradientDrawable2.setColor(Color.parseColor(str));
gradientDrawable2.setCornerRadius((int) d);
view.setBackground(gradientDrawable2);
view.setElevation((int) d2);
}
@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;
}
}