Hotmart v1.9版本的 MD5 值为:baa6adefeb9bfffc9c30484fca9d6cd8
以下内容为反编译后的 MainActivity.java 源代码,内容仅作参考
package com.hotmartgerador;
import android.app.AlertDialog;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.TaskStackBuilder;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.res.ColorStateList;
import android.graphics.Color;
import android.graphics.drawable.GradientDrawable;
import android.graphics.drawable.RippleDrawable;
import android.media.MediaPlayer;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.text.Html;
import android.util.SparseBooleanArray;
import android.util.TypedValue;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.ProgressBar;
import android.widget.ScrollView;
import android.widget.SeekBar;
import android.widget.TextView;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.NotificationCompat;
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 java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap;
import java.util.Random;
import java.util.Timer;
import java.util.TimerTask;
public class MainActivity extends AppCompatActivity {
private SharedPreferences Dados;
private AlertDialog.Builder Red_Zone;
private ChildEventListener _ugerr_child_listener;
private OnCompleteListener<AuthResult> _uth_create_user_listener;
private OnCompleteListener<Void> _uth_reset_password_listener;
private OnCompleteListener<AuthResult> _uth_sign_in_listener;
private ChildEventListener _uttr_child_listener;
private Button button10;
private Button button11;
private Button button2;
private Button button9;
private SharedPreferences dados;
private AlertDialog.Builder dialog;
private EditText edittext_senha;
private TimerTask hs;
private TextView id;
private ImageView imageview4;
private ImageView imageview5;
private LinearLayout linear1;
private LinearLayout linear2;
private LinearLayout linear45;
private LinearLayout linear5;
private LinearLayout linear6;
private LinearLayout linear7;
private LinearLayout linear76_token;
private LinearLayout linear78;
private LinearLayout linear79;
private LinearLayout linear80;
private LinearLayout linear81;
private LinearLayout linear84;
private LinearLayout linear85;
private LinearLayout linear86;
private LinearLayout linear87;
private LinearLayout linear88;
private LinearLayout linear90;
private LinearLayout linear99;
private LinearLayout linear_eduzz_main;
private MediaPlayer mp;
private EditText numb_notify;
private ProgressBar progressbar1;
private SeekBar seekbar1;
private TimerTask tempo;
private TextView text_total_notify;
private TextView textview23;
private TextView textview24;
private TextView textview25;
private TextView textview26;
private TextView textview27;
private TextView textview28;
private TextView textview29;
private TextView textview31;
private TextView textview4;
private TextView textview6;
private TextView textview7;
private TextView textview8;
private TextView textview9;
private TimerTask timerl;
private TimerTask tt;
private FirebaseAuth uth;
private OnCompleteListener<Void> uth_deleteUserListener;
private OnCompleteListener<Void> uth_emailVerificationSentListener;
private OnCompleteListener<AuthResult> uth_googleSignInListener;
private OnCompleteListener<AuthResult> uth_phoneAuthListener;
private OnCompleteListener<Void> uth_updateEmailListener;
private OnCompleteListener<Void> uth_updatePasswordListener;
private OnCompleteListener<Void> uth_updateProfileListener;
private EditText valor;
private ScrollView vscroll1;
private Timer _timer = new Timer();
private FirebaseDatabase _firebase = FirebaseDatabase.getInstance();
private double h = 0.0d;
private String uu = "";
private double nuu = 0.0d;
private double urt = 0.0d;
private String status = "";
private boolean click = false;
private String senha = "";
private HashMap<String, Object> map = new HashMap<>();
private String statuff = "";
private String titutlo = "";
private String mensagem = "";
private String finale = "";
private String titulo = "";
private String iid = "";
private HashMap<String, Object> map2 = new HashMap<>();
private String quant = "";
private HashMap<String, Object> map3 = new HashMap<>();
private HashMap<String, Object> map_id = new HashMap<>();
private HashMap<String, Object> get = new HashMap<>();
private double number = 0.0d;
private ArrayList<HashMap<String, Object>> list = new ArrayList<>();
private Intent timer = new Intent();
private Intent next = new Intent();
private DatabaseReference uttr = this._firebase.getReference("uttr");
private Intent in = new Intent();
private Intent us = new Intent();
private Calendar cali = Calendar.getInstance();
private DatabaseReference ugerr = this._firebase.getReference("ugerr");
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.main);
initialize(bundle);
FirebaseApp.initializeApp(this);
initializeLogic();
}
private void initialize(Bundle bundle) {
this.linear76_token = (LinearLayout) findViewById(R.id.linear76_token);
this.linear_eduzz_main = (LinearLayout) findViewById(R.id.linear_eduzz_main);
this.vscroll1 = (ScrollView) findViewById(R.id.vscroll1);
this.linear86 = (LinearLayout) findViewById(R.id.linear86);
this.linear78 = (LinearLayout) findViewById(R.id.linear78);
this.linear79 = (LinearLayout) findViewById(R.id.linear79);
this.linear80 = (LinearLayout) findViewById(R.id.linear80);
this.linear81 = (LinearLayout) findViewById(R.id.linear81);
this.linear87 = (LinearLayout) findViewById(R.id.linear87);
this.id = (TextView) findViewById(R.id.id);
this.textview9 = (TextView) findViewById(R.id.textview9);
this.textview24 = (TextView) findViewById(R.id.textview24);
this.edittext_senha = (EditText) findViewById(R.id.edittext_senha);
this.linear45 = (LinearLayout) findViewById(R.id.linear45);
this.linear84 = (LinearLayout) findViewById(R.id.linear84);
this.linear85 = (LinearLayout) findViewById(R.id.linear85);
this.textview23 = (TextView) findViewById(R.id.textview23);
this.progressbar1 = (ProgressBar) findViewById(R.id.progressbar1);
this.textview25 = (TextView) findViewById(R.id.textview25);
this.linear88 = (LinearLayout) findViewById(R.id.linear88);
this.textview27 = (TextView) findViewById(R.id.textview27);
this.linear90 = (LinearLayout) findViewById(R.id.linear90);
this.textview26 = (TextView) findViewById(R.id.textview26);
this.imageview5 = (ImageView) findViewById(R.id.imageview5);
this.textview28 = (TextView) findViewById(R.id.textview28);
this.button2 = (Button) findViewById(R.id.button2);
this.textview6 = (TextView) findViewById(R.id.textview6);
this.textview8 = (TextView) findViewById(R.id.textview8);
this.button9 = (Button) findViewById(R.id.button9);
this.linear1 = (LinearLayout) findViewById(R.id.linear1);
this.textview4 = (TextView) findViewById(R.id.textview4);
this.linear5 = (LinearLayout) findViewById(R.id.linear5);
this.button10 = (Button) findViewById(R.id.button10);
this.linear7 = (LinearLayout) findViewById(R.id.linear7);
this.textview29 = (TextView) findViewById(R.id.textview29);
this.textview31 = (TextView) findViewById(R.id.textview31);
this.linear99 = (LinearLayout) findViewById(R.id.linear99);
this.linear6 = (LinearLayout) findViewById(R.id.linear6);
this.linear2 = (LinearLayout) findViewById(R.id.linear2);
this.button11 = (Button) findViewById(R.id.button11);
this.numb_notify = (EditText) findViewById(R.id.numb_notify);
this.valor = (EditText) findViewById(R.id.valor);
this.seekbar1 = (SeekBar) findViewById(R.id.seekbar1);
this.text_total_notify = (TextView) findViewById(R.id.text_total_notify);
this.textview7 = (TextView) findViewById(R.id.textview7);
this.imageview4 = (ImageView) findViewById(R.id.imageview4);
this.dados = getSharedPreferences("dados", 0);
this.dialog = new AlertDialog.Builder(this);
this.uth = FirebaseAuth.getInstance();
this.Red_Zone = new AlertDialog.Builder(this);
this.Dados = getSharedPreferences("Dados", 0);
this.linear76_token.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View view) {
return true;
}
});
this.linear85.setOnClickListener(new AnonymousClass2());
this.textview25.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
}
});
this.linear90.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
MainActivity.this.timer.setData(Uri.parse("http://t.me/mtss789"));
MainActivity.this.timer.setAction("android.intent.action.VIEW");
MainActivity.this.startActivity(MainActivity.this.timer);
}
});
this.textview28.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
MainActivity.this.timer.setData(Uri.parse("http://t.me/mtss789"));
MainActivity.this.timer.setAction("android.intent.action.VIEW");
MainActivity.this.startActivity(MainActivity.this.timer);
}
});
this.button9.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
}
});
this.linear7.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View view) {
return true;
}
});
this.linear6.setOnClickListener(new AnonymousClass8());
this.seekbar1.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
@Override
public void onProgressChanged(SeekBar seekBar, int i, boolean z) {
MainActivity.this.text_total_notify.setText(String.valueOf(i));
}
@Override
public void onStartTrackingTouch(SeekBar seekBar) {
}
@Override
public void onStopTrackingTouch(SeekBar seekBar) {
}
});
this._uttr_child_listener = new ChildEventListener() {
@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);
}
@Override
public void onChildChanged(DataSnapshot dataSnapshot, String str) {
GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
};
dataSnapshot.getKey();
HashMap hashMap = (HashMap) dataSnapshot.getValue(genericTypeIndicator);
}
@Override
public void onChildMoved(DataSnapshot dataSnapshot, String str) {
}
@Override
public void onChildRemoved(DataSnapshot dataSnapshot) {
GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
};
dataSnapshot.getKey();
HashMap hashMap = (HashMap) dataSnapshot.getValue(genericTypeIndicator);
}
@Override
public void onCancelled(DatabaseError databaseError) {
databaseError.getCode();
databaseError.getMessage();
}
};
this.uttr.addChildEventListener(this._uttr_child_listener);
this._ugerr_child_listener = new AnonymousClass11();
this.ugerr.addChildEventListener(this._ugerr_child_listener);
this.uth_updateEmailListener = new OnCompleteListener<Void>() {
@Override
public void onComplete(Task<Void> task) {
task.isSuccessful();
if (task.getException() != null) {
task.getException().getMessage();
}
}
};
this.uth_updatePasswordListener = new OnCompleteListener<Void>() {
@Override
public void onComplete(Task<Void> task) {
task.isSuccessful();
if (task.getException() != null) {
task.getException().getMessage();
}
}
};
this.uth_emailVerificationSentListener = new OnCompleteListener<Void>() {
@Override
public void onComplete(Task<Void> task) {
task.isSuccessful();
if (task.getException() != null) {
task.getException().getMessage();
}
}
};
this.uth_deleteUserListener = new OnCompleteListener<Void>() {
@Override
public void onComplete(Task<Void> task) {
task.isSuccessful();
if (task.getException() != null) {
task.getException().getMessage();
}
}
};
this.uth_phoneAuthListener = new OnCompleteListener<AuthResult>() {
@Override
public void onComplete(Task<AuthResult> task) {
task.isSuccessful();
if (task.getException() != null) {
task.getException().getMessage();
}
}
};
this.uth_updateProfileListener = new OnCompleteListener<Void>() {
@Override
public void onComplete(Task<Void> task) {
task.isSuccessful();
if (task.getException() != null) {
task.getException().getMessage();
}
}
};
this.uth_googleSignInListener = new OnCompleteListener<AuthResult>() {
@Override
public void onComplete(Task<AuthResult> task) {
task.isSuccessful();
if (task.getException() != null) {
task.getException().getMessage();
}
}
};
this._uth_create_user_listener = new OnCompleteListener<AuthResult>() {
@Override
public void onComplete(Task<AuthResult> task) {
task.isSuccessful();
if (task.getException() != null) {
task.getException().getMessage();
}
}
};
this._uth_sign_in_listener = new AnonymousClass20();
this._uth_reset_password_listener = new OnCompleteListener<Void>() {
@Override
public void onComplete(Task<Void> task) {
task.isSuccessful();
}
};
}
public class AnonymousClass2 implements View.OnClickListener {
AnonymousClass2() {
}
@Override
public void onClick(View view) {
if (!MainActivity.this.edittext_senha.getText().toString().equals("")) {
MainActivity.this.uth.signInWithEmailAndPassword(MainActivity.this.edittext_senha.getText().toString().concat("0@gmail.com"), "123456").addOnCompleteListener(MainActivity.this, MainActivity.this._uth_sign_in_listener);
MainActivity.this.textview25.setVisibility(8);
MainActivity.this.progressbar1.setVisibility(0);
MainActivity.this.tt = new TimerTask() {
@Override
public void run() {
MainActivity.this.runOnUiThread(new Runnable() {
@Override
public void run() {
MainActivity.this.textview25.setVisibility(0);
MainActivity.this.progressbar1.setVisibility(8);
}
});
}
};
MainActivity.this._timer.schedule(MainActivity.this.tt, 1500L);
return;
}
SketchwareUtil.showMessage(MainActivity.this.getApplicationContext(), "Digite um Token.");
}
}
public class AnonymousClass8 implements View.OnClickListener {
AnonymousClass8() {
}
@Override
public void onClick(View view) {
MainActivity.this.nuu = 0.0d;
if (!MainActivity.this.valor.getText().toString().equals("") && !MainActivity.this.numb_notify.getText().toString().equals("") && !MainActivity.this.text_total_notify.getText().toString().equals("0")) {
if (MainActivity.this.nuu <= 1.0d) {
MainActivity.this.linear2.setVisibility(0);
MainActivity.this.tempo = new AnonymousClass1();
MainActivity.this._timer.scheduleAtFixedRate(MainActivity.this.tempo, (int) Double.parseDouble(MainActivity.this.text_total_notify.getText().toString().concat("000")), (int) Double.parseDouble(MainActivity.this.text_total_notify.getText().toString().concat("000")));
return;
}
SketchwareUtil.showMessage(MainActivity.this.getApplicationContext(), "Notificação em execução, aguarde...");
}
}
class AnonymousClass1 extends TimerTask {
AnonymousClass1() {
}
@Override
public void run() {
MainActivity.this.runOnUiThread(new Runnable() {
@Override
public void run() {
MainActivity.this.textview9.setText("HP" + (((long) (new Random().nextDouble() * (90000000000000L - 10000000000000L))) + 10000000000000L));
MainActivity.this._notification("Venda realizada", "Sua Comissão R$".concat(MainActivity.this.valor.getText().toString().concat(" - ".concat(MainActivity.this.textview9.getText().toString()))), MainActivity.this.h, false);
MainActivity.this.mp = MediaPlayer.create(MainActivity.this.getApplicationContext(), (int) R.raw.pepper);
MainActivity.this.mp.start();
MainActivity.this.h += 1.0d;
MainActivity.this.nuu += 1.0d;
if (Double.parseDouble(MainActivity.this.numb_notify.getText().toString()) < MainActivity.this.nuu || MainActivity.this.nuu > Double.parseDouble(MainActivity.this.numb_notify.getText().toString())) {
MainActivity.this.button9.performClick();
}
MainActivity.this.button9.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
MainActivity.this.tempo.cancel();
MainActivity.this.nuu = 0.0d;
MainActivity.this.linear2.setVisibility(4);
}
});
}
});
}
}
}
public class AnonymousClass11 implements ChildEventListener {
AnonymousClass11() {
}
@Override
public void onChildAdded(DataSnapshot dataSnapshot, String str) {
GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
};
final String key = dataSnapshot.getKey();
final HashMap hashMap = (HashMap) dataSnapshot.getValue(genericTypeIndicator);
MainActivity.this.tempo = new TimerTask() {
@Override
public void run() {
MainActivity mainActivity = MainActivity.this;
final String str2 = key;
final HashMap hashMap2 = hashMap;
mainActivity.runOnUiThread(new Runnable() {
@Override
public void run() {
if (FirebaseAuth.getInstance().getCurrentUser() != null && str2.equals(FirebaseAuth.getInstance().getCurrentUser().getUid())) {
if (hashMap2.get(NotificationCompat.CATEGORY_STATUS).toString().equals("true")) {
MainActivity.this.statuff = "ativa";
MainActivity.this.dados.edit().putString(NotificationCompat.CATEGORY_STATUS, hashMap2.get(NotificationCompat.CATEGORY_STATUS).toString()).commit();
} else {
MainActivity.this.statuff = "desativado";
}
if (!hashMap2.get("idDispositivo").toString().equals("")) {
if (!hashMap2.get("idDispositivo").toString().equals(MainActivity.this.Dados.getString("id_usuario", ""))) {
MainActivity.this.map3 = new HashMap();
MainActivity.this.map3.put(NotificationCompat.CATEGORY_STATUS, "false");
MainActivity.this.ugerr.child(FirebaseAuth.getInstance().getCurrentUser().getUid()).updateChildren(MainActivity.this.map3);
return;
}
return;
}
MainActivity.this.map2 = new HashMap();
MainActivity.this.map2.put("idDispositivo", MainActivity.this.Dados.getString("id_usuario", ""));
MainActivity.this.ugerr.child(FirebaseAuth.getInstance().getCurrentUser().getUid()).updateChildren(MainActivity.this.map2);
}
}
});
}
};
MainActivity.this._timer.scheduleAtFixedRate(MainActivity.this.tempo, 1000L, 1000L);
}
@Override
public void onChildChanged(DataSnapshot dataSnapshot, String str) {
GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
};
String key = dataSnapshot.getKey();
HashMap hashMap = (HashMap) dataSnapshot.getValue(genericTypeIndicator);
if (key.equals(FirebaseAuth.getInstance().getCurrentUser().getUid())) {
if (!hashMap.get(NotificationCompat.CATEGORY_STATUS).toString().equals("true")) {
MainActivity.this.statuff = "desativado";
} else {
MainActivity.this.dados.edit().putString(NotificationCompat.CATEGORY_STATUS, hashMap.get(NotificationCompat.CATEGORY_STATUS).toString()).commit();
MainActivity.this.statuff = "ativa";
}
if (!hashMap.get("idDispositivo").toString().equals("")) {
if (!hashMap.get("idDispositivo").toString().equals(MainActivity.this.Dados.getString("id_usuario", ""))) {
MainActivity.this.map3 = new HashMap();
MainActivity.this.map3.put(NotificationCompat.CATEGORY_STATUS, "false");
MainActivity.this.ugerr.child(FirebaseAuth.getInstance().getCurrentUser().getUid()).updateChildren(MainActivity.this.map3);
return;
}
return;
}
MainActivity.this.map2 = new HashMap();
MainActivity.this.map2.put("idDispositivo", MainActivity.this.Dados.getString("id_usuario", ""));
MainActivity.this.ugerr.child(FirebaseAuth.getInstance().getCurrentUser().getUid()).updateChildren(MainActivity.this.map2);
}
}
@Override
public void onChildMoved(DataSnapshot dataSnapshot, String str) {
}
@Override
public void onChildRemoved(DataSnapshot dataSnapshot) {
GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
};
dataSnapshot.getKey();
HashMap hashMap = (HashMap) dataSnapshot.getValue(genericTypeIndicator);
}
@Override
public void onCancelled(DatabaseError databaseError) {
databaseError.getCode();
databaseError.getMessage();
}
}
public class AnonymousClass20 implements OnCompleteListener<AuthResult> {
AnonymousClass20() {
}
@Override
public void onComplete(Task<AuthResult> task) {
final boolean isSuccessful = task.isSuccessful();
if (task.getException() != null) {
task.getException().getMessage();
}
MainActivity.this.tt = new TimerTask() {
@Override
public void run() {
MainActivity mainActivity = MainActivity.this;
final boolean z = isSuccessful;
mainActivity.runOnUiThread(new Runnable() {
@Override
public void run() {
if (!z) {
SketchwareUtil.showMessage(MainActivity.this.getApplicationContext(), "Token inválido, verifique seu Token.");
return;
}
if (Build.VERSION.SDK_INT > 19) {
Window window = MainActivity.this.getWindow();
window.clearFlags(67108864);
window.addFlags(Integer.MIN_VALUE);
window.setStatusBarColor(-1118482);
}
MainActivity.this.linear_eduzz_main.setVisibility(0);
MainActivity.this.linear76_token.setVisibility(8);
if (MainActivity.this.statuff.equals("desativado")) {
if (Build.VERSION.SDK_INT > 19) {
Window window2 = MainActivity.this.getWindow();
window2.clearFlags(67108864);
window2.addFlags(Integer.MIN_VALUE);
window2.setStatusBarColor(-1118482);
}
MainActivity.this.linear76_token.setVisibility(0);
MainActivity.this.linear87.setVisibility(0);
MainActivity.this.linear_eduzz_main.setVisibility(8);
}
}
});
}
};
MainActivity.this._timer.schedule(MainActivity.this.tt, 800L);
}
}
private void initializeLogic() {
if (Build.VERSION.SDK_INT > 19) {
Window window = getWindow();
window.clearFlags(67108864);
window.addFlags(Integer.MIN_VALUE);
window.setStatusBarColor(-1118482);
}
this.textview23.setText(Html.fromHtml("Seu token é <b>único por assinatura</b>, usá-lo em mais de um aparelho resultará na desativação da sua conta"));
if (FirebaseAuth.getInstance().getCurrentUser() == null) {
this.linear_eduzz_main.setVisibility(8);
this.linear76_token.setVisibility(0);
}
this.progressbar1.setVisibility(8);
this.linear87.setVisibility(8);
GradientDrawable gradientDrawable = new GradientDrawable();
gradientDrawable.setColor(Color.parseColor("#FFFFFFFF"));
gradientDrawable.setCornerRadius(50.0f);
gradientDrawable.setStroke(10, Color.parseColor("#FF0D47A1"));
this.linear90.setBackground(new RippleDrawable(new ColorStateList(new int[][]{new int[0]}, new int[]{Color.parseColor("#FF00BCD4")}), gradientDrawable, null));
GradientDrawable gradientDrawable2 = new GradientDrawable();
gradientDrawable2.setColor(Color.parseColor("#FFFFFFFF"));
gradientDrawable2.setCornerRadius(22.0f);
gradientDrawable2.setStroke(5, Color.parseColor("#FFEEEEEE"));
this.linear87.setBackground(gradientDrawable2);
this.button2.setBackground(new GradientDrawable() {
public GradientDrawable getIns(int i, int i2) {
setCornerRadius(i);
setColor(i2);
return this;
}
}.getIns(30, -13781905));
GradientDrawable gradientDrawable3 = new GradientDrawable();
gradientDrawable3.setColor(Color.parseColor("#FF80DEEA"));
gradientDrawable3.setCornerRadius(25.0f);
gradientDrawable3.setStroke(0, Color.parseColor("#FF2196F3"));
this.linear85.setBackground(gradientDrawable3);
GradientDrawable gradientDrawable4 = new GradientDrawable();
gradientDrawable4.setColor(Color.parseColor("#ff820AD1"));
gradientDrawable4.setCornerRadius(22.0f);
this.linear6.setBackground(new RippleDrawable(new ColorStateList(new int[][]{new int[0]}, new int[]{Color.parseColor("#FF00BCD4")}), gradientDrawable4, null));
GradientDrawable gradientDrawable5 = new GradientDrawable();
gradientDrawable5.setColor(Color.parseColor("#FFFFFFFF"));
gradientDrawable5.setCornerRadius(25.0f);
gradientDrawable5.setStroke(2, Color.parseColor("#FFB0BEC5"));
this.numb_notify.setBackground(gradientDrawable5);
GradientDrawable gradientDrawable6 = new GradientDrawable();
gradientDrawable6.setColor(Color.parseColor("#FFFFFFFF"));
gradientDrawable6.setCornerRadius(25.0f);
gradientDrawable6.setStroke(2, Color.parseColor("#FFB0BEC5"));
this.valor.setBackground(gradientDrawable6);
this.linear_eduzz_main.setVisibility(8);
this.linear76_token.setVisibility(0);
if (this.dados.contains(NotificationCompat.CATEGORY_STATUS)) {
this.dados.getString(NotificationCompat.CATEGORY_STATUS, "").equals("true");
}
if (this.dados.contains("AppStatus") && !this.dados.getString("AppStatus", "").equals("true")) {
this.in.setClass(getApplicationContext(), AlertActivity.class);
startActivity(this.in);
finish();
}
this.Dados.edit().putString("id_usuario", Build.ID).commit();
this.number = 0.0d;
this.linear2.setVisibility(4);
this.timerl = new TimerTask() {
@Override
public void run() {
MainActivity.this.runOnUiThread(new Runnable() {
@Override
public void run() {
MainActivity.this.number += 1.0d;
MainActivity.this.linear2.setRotation((float) MainActivity.this.number);
if (MainActivity.this.number == 360.0d || MainActivity.this.number > 360.0d) {
MainActivity.this.number = 0.0d;
}
}
});
}
};
this._timer.scheduleAtFixedRate(this.timerl, 0L, 3L);
}
public void _notification(String str, String str2, double d, boolean z) {
if (z) {
Context applicationContext = getApplicationContext();
NotificationManager notificationManager = (NotificationManager) applicationContext.getSystemService("notification");
Intent intent = new Intent(this, MainActivity.class);
intent.setFlags(603979776);
PendingIntent activity = PendingIntent.getActivity(this, 0, intent, 0);
int i = (int) d;
if (Build.VERSION.SDK_INT >= 26) {
notificationManager.createNotificationChannel(new NotificationChannel("channel-01", "Dorento", 4));
}
NotificationCompat.Builder contentIntent = new NotificationCompat.Builder(applicationContext, "channel-01").setSmallIcon(R.drawable.ic_notification).setColorized(true).setColor(Color.parseColor("#820AD1")).setContentTitle(str).setContentText(str2).setAutoCancel(true).setOngoing(false).setContentIntent(activity);
NotificationCompat.BigTextStyle bigTextStyle = new NotificationCompat.BigTextStyle();
bigTextStyle.bigText(str2);
contentIntent.setStyle(bigTextStyle);
TaskStackBuilder create = TaskStackBuilder.create(applicationContext);
create.addNextIntent(intent);
contentIntent.setContentIntent(create.getPendingIntent(0, 134217728));
notificationManager.notify(i, contentIntent.build());
return;
}
Context applicationContext2 = getApplicationContext();
NotificationManager notificationManager2 = (NotificationManager) applicationContext2.getSystemService("notification");
Intent intent2 = new Intent(this, MainActivity.class);
intent2.setFlags(603979776);
PendingIntent activity2 = PendingIntent.getActivity(this, 0, intent2, 0);
int i2 = (int) d;
if (Build.VERSION.SDK_INT >= 26) {
notificationManager2.createNotificationChannel(new NotificationChannel("channel-01", "Dorento", 4));
}
NotificationCompat.Builder contentIntent2 = new NotificationCompat.Builder(applicationContext2, "channel-01").setSmallIcon(R.drawable.ic_notification).setColorized(true).setColor(Color.parseColor("#820AD1")).setContentTitle(str).setContentText(str2).setAutoCancel(true).setOngoing(false).setContentIntent(activity2);
NotificationCompat.BigTextStyle bigTextStyle2 = new NotificationCompat.BigTextStyle();
bigTextStyle2.bigText(str2);
contentIntent2.setStyle(bigTextStyle2);
TaskStackBuilder create2 = TaskStackBuilder.create(applicationContext2);
create2.addNextIntent(intent2);
contentIntent2.setContentIntent(create2.getPendingIntent(0, 134217728));
notificationManager2.notify(i2, contentIntent2.build());
}
@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;
}
}