SKM TOURNAMENT v1.0版本的 MD5 值为:3f4f4ff9cf9de96fafbfe80869223ebf
以下内容为反编译后的 HomeActivity.java 源代码,内容仅作参考
package com.skm.tournament;
import android.animation.ObjectAnimator;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.res.ColorStateList;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.GradientDrawable;
import android.graphics.drawable.RippleDrawable;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.SparseBooleanArray;
import android.util.TypedValue;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.BounceInterpolator;
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.constraintlayout.motion.widget.Key;
import androidx.exifinterface.media.ExifInterface;
import androidx.viewpager.widget.PagerAdapter;
import androidx.viewpager.widget.ViewPager;
import com.bumptech.glide.Glide;
import com.google.android.gms.tasks.OnCompleteListener;
import com.google.android.gms.tasks.Task;
import com.google.android.material.floatingactionbutton.FloatingActionButton;
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.skm.tournament.RequestNetwork;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Random;
import java.util.Timer;
import java.util.TimerTask;
public class HomeActivity extends AppCompatActivity {
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 LinearLayout Balance;
private TextView BalanceId;
private LinearLayout Bg2;
private LinearLayout Bg5;
private AlertDialog.Builder Dialog;
private LinearLayout Dots1;
private LinearLayout Dots2;
private LinearLayout Dots3;
private LinearLayout Dots4;
private LinearLayout Dots5;
private LinearLayout DotsBg;
private TextView FFTV;
private LinearLayout FrerFireBg;
private LinearLayout GameBg;
private TextView KilledId;
private TextView LKTV;
private TimerTask LogOut;
private LinearLayout LudoBg;
private LinearLayout Main_Balance;
private ImageView MeIcon;
private TextView MeText;
private LinearLayout Menu1;
private LinearLayout Menu2;
private LinearLayout Menu3;
private LinearLayout MenuBg;
private TextView Name;
private TextView NameId;
private LinearLayout NavigationBg;
private TextView Number;
private LinearLayout PlayBg;
private TextView PlayText;
private TextView PlayedId;
private AlertDialog.Builder Pro;
private LinearLayout RulesBg;
private ScrollView Scroll;
private LinearLayout ScrollBg;
private TextView ScrollingTv;
private SharedPreferences Slides;
private TextView SmsText;
private TimerTask Time;
private LinearLayout Total_Klied;
private LinearLayout Totall_Match;
private ViewPager ViewPage;
private RequestNetwork WiFi;
private TextView WinningId;
private LinearLayout Winning_Balance;
private ChildEventListener _Admin_child_listener;
private OnCompleteListener<AuthResult> _Auth_create_user_listener;
private OnCompleteListener<Void> _Auth_reset_password_listener;
private OnCompleteListener<AuthResult> _Auth_sign_in_listener;
private ChildEventListener _Rules_child_listener;
private ChildEventListener _Sliders_child_listener;
private ChildEventListener _Users_child_listener;
private RequestNetwork.RequestListener _WiFi_request_listener;
private FloatingActionButton _fab;
private TextView balance;
private ProgressDialog coreprog;
private ImageView imageview10;
private ImageView imageview11;
private ImageView imageview13;
private ImageView imageview14;
private ImageView imageview15;
private ImageView imageview16;
private ImageView imageview17;
private ImageView imageview18;
private ImageView imageview19;
private ImageView imageview2;
private ImageView imageview20;
private ImageView imageview21;
private ImageView imageview22;
private ImageView imageview23;
private ImageView imageview24;
private ImageView imageview25;
private ImageView imageview26;
private ImageView imageview3;
private ImageView imageview4;
private ImageView imageview5;
private ImageView imageview6;
private ImageView imageview7;
private ImageView imageview8;
private ImageView imageview9;
private LinearLayout linear10;
private LinearLayout linear11;
private LinearLayout linear12;
private LinearLayout linear13;
private LinearLayout linear131;
private LinearLayout linear134;
private LinearLayout linear136;
private LinearLayout linear14;
private LinearLayout linear140;
private LinearLayout linear142;
private LinearLayout linear143;
private LinearLayout linear144;
private LinearLayout linear15;
private LinearLayout linear16;
private LinearLayout linear17;
private LinearLayout linear24;
private LinearLayout linear28;
private LinearLayout linear31;
private LinearLayout linear34;
private LinearLayout linear37;
private LinearLayout linear38;
private LinearLayout linear40;
private LinearLayout linear41;
private LinearLayout linear42;
private LinearLayout linear43;
private LinearLayout linear6;
private LinearLayout linear7;
private LinearLayout linear8;
private LinearLayout linear9;
private TextView textview10;
private TextView textview11;
private TextView textview12;
private TextView textview13;
private TextView textview14;
private TextView textview15;
private TextView textview16;
private TextView textview17;
private TextView textview18;
private TextView textview19;
private TextView textview20;
private TextView textview21;
private TextView textview3;
private TextView textview30;
private TextView textview31;
private TextView textview32;
private TextView textview33;
private TextView textview35;
private TextView textview36;
private TextView textview44;
private TextView textview46;
private TextView textview5;
private TextView textview7;
private TextView textview9;
private TextView winblance;
private LinearLayout winning_balance_manu;
private Timer _timer = new Timer();
private FirebaseDatabase _firebase = FirebaseDatabase.getInstance();
private HashMap<String, Object> Create = new HashMap<>();
private String PromoCode = "";
private String WhatsApp = "";
private HashMap<String, Object> Rule = new HashMap<>();
private HashMap<String, Object> TopUp = new HashMap<>();
private String ShareUrl = "";
private String AppUrl = "";
private String Group1 = "";
private String Group2 = "";
private double ViewSlide = 0.0d;
private ArrayList<HashMap<String, Object>> Slide = new ArrayList<>();
private DatabaseReference Users = this._firebase.getReference("Users");
private Intent Screen = new Intent();
private Intent Website = new Intent();
private DatabaseReference Rules = this._firebase.getReference("Rules");
private DatabaseReference Admin = this._firebase.getReference("Admin");
private ObjectAnimator OB = new ObjectAnimator();
private DatabaseReference Sliders = this._firebase.getReference("Sliders");
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.home);
initialize(bundle);
FirebaseApp.initializeApp(this);
initializeLogic();
}
private void initialize(Bundle bundle) {
this._fab = (FloatingActionButton) findViewById(R.id._fab);
this.Bg2 = (LinearLayout) findViewById(R.id.Bg2);
this.Bg5 = (LinearLayout) findViewById(R.id.Bg5);
this.NavigationBg = (LinearLayout) findViewById(R.id.NavigationBg);
this.Scroll = (ScrollView) findViewById(R.id.Scroll);
this.ScrollBg = (LinearLayout) findViewById(R.id.ScrollBg);
this.PlayBg = (LinearLayout) findViewById(R.id.PlayBg);
this.MenuBg = (LinearLayout) findViewById(R.id.MenuBg);
this.linear28 = (LinearLayout) findViewById(R.id.linear28);
this.linear24 = (LinearLayout) findViewById(R.id.linear24);
this.ViewPage = (ViewPager) findViewById(R.id.ViewPage);
this.DotsBg = (LinearLayout) findViewById(R.id.DotsBg);
this.RulesBg = (LinearLayout) findViewById(R.id.RulesBg);
this.GameBg = (LinearLayout) findViewById(R.id.GameBg);
this.linear144 = (LinearLayout) findViewById(R.id.linear144);
this.linear134 = (LinearLayout) findViewById(R.id.linear134);
this.linear142 = (LinearLayout) findViewById(R.id.linear142);
this.linear136 = (LinearLayout) findViewById(R.id.linear136);
this.linear131 = (LinearLayout) findViewById(R.id.linear131);
this.linear143 = (LinearLayout) findViewById(R.id.linear143);
this.linear140 = (LinearLayout) findViewById(R.id.linear140);
this.textview46 = (TextView) findViewById(R.id.textview46);
this.Name = (TextView) findViewById(R.id.Name);
this.textview44 = (TextView) findViewById(R.id.textview44);
this.Number = (TextView) findViewById(R.id.Number);
this.imageview26 = (ImageView) findViewById(R.id.imageview26);
this.Balance = (LinearLayout) findViewById(R.id.Balance);
this.Winning_Balance = (LinearLayout) findViewById(R.id.Winning_Balance);
this.imageview21 = (ImageView) findViewById(R.id.imageview21);
this.winblance = (TextView) findViewById(R.id.winblance);
this.imageview22 = (ImageView) findViewById(R.id.imageview22);
this.imageview23 = (ImageView) findViewById(R.id.imageview23);
this.balance = (TextView) findViewById(R.id.balance);
this.imageview24 = (ImageView) findViewById(R.id.imageview24);
this.Dots1 = (LinearLayout) findViewById(R.id.Dots1);
this.Dots2 = (LinearLayout) findViewById(R.id.Dots2);
this.Dots3 = (LinearLayout) findViewById(R.id.Dots3);
this.Dots4 = (LinearLayout) findViewById(R.id.Dots4);
this.Dots5 = (LinearLayout) findViewById(R.id.Dots5);
this.imageview8 = (ImageView) findViewById(R.id.imageview8);
this.ScrollingTv = (TextView) findViewById(R.id.ScrollingTv);
this.FrerFireBg = (LinearLayout) findViewById(R.id.FrerFireBg);
this.LudoBg = (LinearLayout) findViewById(R.id.LudoBg);
this.imageview17 = (ImageView) findViewById(R.id.imageview17);
this.FFTV = (TextView) findViewById(R.id.FFTV);
this.linear16 = (LinearLayout) findViewById(R.id.linear16);
this.imageview18 = (ImageView) findViewById(R.id.imageview18);
this.textview20 = (TextView) findViewById(R.id.textview20);
this.imageview19 = (ImageView) findViewById(R.id.imageview19);
this.LKTV = (TextView) findViewById(R.id.LKTV);
this.linear17 = (LinearLayout) findViewById(R.id.linear17);
this.imageview20 = (ImageView) findViewById(R.id.imageview20);
this.textview21 = (TextView) findViewById(R.id.textview21);
this.MeIcon = (ImageView) findViewById(R.id.MeIcon);
this.NameId = (TextView) findViewById(R.id.NameId);
this.linear31 = (LinearLayout) findViewById(R.id.linear31);
this.linear34 = (LinearLayout) findViewById(R.id.linear34);
this.linear38 = (LinearLayout) findViewById(R.id.linear38);
this.Main_Balance = (LinearLayout) findViewById(R.id.Main_Balance);
this.winning_balance_manu = (LinearLayout) findViewById(R.id.winning_balance_manu);
this.BalanceId = (TextView) findViewById(R.id.BalanceId);
this.textview3 = (TextView) findViewById(R.id.textview3);
this.WinningId = (TextView) findViewById(R.id.WinningId);
this.textview9 = (TextView) findViewById(R.id.textview9);
this.Totall_Match = (LinearLayout) findViewById(R.id.Totall_Match);
this.Total_Klied = (LinearLayout) findViewById(R.id.Total_Klied);
this.PlayedId = (TextView) findViewById(R.id.PlayedId);
this.textview5 = (TextView) findViewById(R.id.textview5);
this.KilledId = (TextView) findViewById(R.id.KilledId);
this.textview7 = (TextView) findViewById(R.id.textview7);
this.linear37 = (LinearLayout) findViewById(R.id.linear37);
this.textview30 = (TextView) findViewById(R.id.textview30);
this.linear6 = (LinearLayout) findViewById(R.id.linear6);
this.linear7 = (LinearLayout) findViewById(R.id.linear7);
this.linear8 = (LinearLayout) findViewById(R.id.linear8);
this.linear15 = (LinearLayout) findViewById(R.id.linear15);
this.linear12 = (LinearLayout) findViewById(R.id.linear12);
this.linear13 = (LinearLayout) findViewById(R.id.linear13);
this.linear40 = (LinearLayout) findViewById(R.id.linear40);
this.textview31 = (TextView) findViewById(R.id.textview31);
this.linear14 = (LinearLayout) findViewById(R.id.linear14);
this.linear11 = (LinearLayout) findViewById(R.id.linear11);
this.linear9 = (LinearLayout) findViewById(R.id.linear9);
this.linear41 = (LinearLayout) findViewById(R.id.linear41);
this.textview32 = (TextView) findViewById(R.id.textview32);
this.linear10 = (LinearLayout) findViewById(R.id.linear10);
this.linear42 = (LinearLayout) findViewById(R.id.linear42);
this.imageview3 = (ImageView) findViewById(R.id.imageview3);
this.textview11 = (TextView) findViewById(R.id.textview11);
this.imageview4 = (ImageView) findViewById(R.id.imageview4);
this.textview12 = (TextView) findViewById(R.id.textview12);
this.imageview5 = (ImageView) findViewById(R.id.imageview5);
this.textview13 = (TextView) findViewById(R.id.textview13);
this.imageview16 = (ImageView) findViewById(R.id.imageview16);
this.textview19 = (TextView) findViewById(R.id.textview19);
this.imageview13 = (ImageView) findViewById(R.id.imageview13);
this.textview16 = (TextView) findViewById(R.id.textview16);
this.imageview14 = (ImageView) findViewById(R.id.imageview14);
this.textview17 = (TextView) findViewById(R.id.textview17);
this.imageview15 = (ImageView) findViewById(R.id.imageview15);
this.textview18 = (TextView) findViewById(R.id.textview18);
this.imageview7 = (ImageView) findViewById(R.id.imageview7);
this.textview15 = (TextView) findViewById(R.id.textview15);
this.imageview6 = (ImageView) findViewById(R.id.imageview6);
this.textview14 = (TextView) findViewById(R.id.textview14);
this.imageview2 = (ImageView) findViewById(R.id.imageview2);
this.textview10 = (TextView) findViewById(R.id.textview10);
this.textview33 = (TextView) findViewById(R.id.textview33);
this.textview35 = (TextView) findViewById(R.id.textview35);
this.Menu1 = (LinearLayout) findViewById(R.id.Menu1);
this.Menu2 = (LinearLayout) findViewById(R.id.Menu2);
this.linear43 = (LinearLayout) findViewById(R.id.linear43);
this.Menu3 = (LinearLayout) findViewById(R.id.Menu3);
this.imageview9 = (ImageView) findViewById(R.id.imageview9);
this.PlayText = (TextView) findViewById(R.id.PlayText);
this.imageview10 = (ImageView) findViewById(R.id.imageview10);
this.SmsText = (TextView) findViewById(R.id.SmsText);
this.imageview25 = (ImageView) findViewById(R.id.imageview25);
this.textview36 = (TextView) findViewById(R.id.textview36);
this.imageview11 = (ImageView) findViewById(R.id.imageview11);
this.MeText = (TextView) findViewById(R.id.MeText);
this.Auth = FirebaseAuth.getInstance();
this.Dialog = new AlertDialog.Builder(this);
this.Pro = new AlertDialog.Builder(this);
this.Slides = getSharedPreferences("Slides", 0);
this.WiFi = new RequestNetwork(this);
this.ViewPage.addOnPageChangeListener(new ViewPager.OnPageChangeListener() {
@Override
public void onPageScrolled(int i, float f, int i2) {
if (i == 0) {
HomeActivity.this.Dots1.setAlpha(1.0f);
HomeActivity.this.Dots2.setAlpha(0.5f);
HomeActivity.this.Dots3.setAlpha(0.5f);
HomeActivity.this.Dots4.setAlpha(0.5f);
HomeActivity.this.Dots5.setAlpha(0.5f);
}
if (i == 1) {
HomeActivity.this.Dots1.setAlpha(0.5f);
HomeActivity.this.Dots2.setAlpha(1.0f);
HomeActivity.this.Dots3.setAlpha(0.5f);
HomeActivity.this.Dots4.setAlpha(0.5f);
HomeActivity.this.Dots5.setAlpha(0.5f);
}
if (i == 2) {
HomeActivity.this.Dots1.setAlpha(0.5f);
HomeActivity.this.Dots2.setAlpha(0.5f);
HomeActivity.this.Dots3.setAlpha(1.0f);
HomeActivity.this.Dots4.setAlpha(0.5f);
HomeActivity.this.Dots5.setAlpha(0.5f);
}
if (i == 3) {
HomeActivity.this.Dots1.setAlpha(0.5f);
HomeActivity.this.Dots2.setAlpha(0.5f);
HomeActivity.this.Dots3.setAlpha(0.5f);
HomeActivity.this.Dots4.setAlpha(1.0f);
HomeActivity.this.Dots5.setAlpha(0.5f);
}
if (i == 4) {
HomeActivity.this.Dots1.setAlpha(0.5f);
HomeActivity.this.Dots2.setAlpha(0.5f);
HomeActivity.this.Dots3.setAlpha(0.5f);
HomeActivity.this.Dots4.setAlpha(0.5f);
HomeActivity.this.Dots5.setAlpha(1.0f);
}
}
@Override
public void onPageSelected(int i) {
}
@Override
public void onPageScrollStateChanged(int i) {
}
});
this.FrerFireBg.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
HomeActivity.this.Screen.putExtra("Screen", "Ludo King");
HomeActivity.this.Screen.putExtra("Image", "ludo");
HomeActivity.this.Screen.setClass(HomeActivity.this.getApplicationContext(), FreefireActivity.class);
HomeActivity.this.startActivity(HomeActivity.this.Screen);
}
});
this.LudoBg.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
HomeActivity.this.Screen.putExtra("Screen", "Free Fire");
HomeActivity.this.Screen.putExtra("Image", "freefire");
HomeActivity.this.Screen.setClass(HomeActivity.this.getApplicationContext(), FreefireActivity.class);
HomeActivity.this.startActivity(HomeActivity.this.Screen);
}
});
this.linear6.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
HomeActivity.this.Screen.setClass(HomeActivity.this.getApplicationContext(), ProfileActivity.class);
HomeActivity.this.startActivity(HomeActivity.this.Screen);
}
});
this.linear7.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
HomeActivity.this.Screen.setClass(HomeActivity.this.getApplicationContext(), WalletActivity.class);
HomeActivity.this.startActivity(HomeActivity.this.Screen);
}
});
this.linear8.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
HomeActivity.this.Screen.setClass(HomeActivity.this.getApplicationContext(), TranxActivity.class);
HomeActivity.this.startActivity(HomeActivity.this.Screen);
}
});
this.linear15.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
HomeActivity.this.Screen.setClass(HomeActivity.this.getApplicationContext(), UploadActivity.class);
HomeActivity.this.startActivity(HomeActivity.this.Screen);
}
});
this.linear12.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
HomeActivity.this.Screen.setClass(HomeActivity.this.getApplicationContext(), TransferActivity.class);
HomeActivity.this.startActivity(HomeActivity.this.Screen);
}
});
this.linear13.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
HomeActivity.this.Screen.setClass(HomeActivity.this.getApplicationContext(), PromoActivity.class);
HomeActivity.this.startActivity(HomeActivity.this.Screen);
}
});
this.linear14.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
HomeActivity.this.Screen.setClass(HomeActivity.this.getApplicationContext(), PrivacyActivity.class);
HomeActivity.this.startActivity(HomeActivity.this.Screen);
}
});
this.linear11.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
final AlertDialog create = new AlertDialog.Builder(HomeActivity.this).create();
View inflate = HomeActivity.this.getLayoutInflater().inflate(R.layout.dialog, (ViewGroup) null);
create.getWindow().setBackgroundDrawableResource(android.R.color.transparent);
create.setView(inflate);
LinearLayout linearLayout = (LinearLayout) inflate.findViewById(R.id.L1);
LinearLayout linearLayout2 = (LinearLayout) inflate.findViewById(R.id.L2);
LinearLayout linearLayout3 = (LinearLayout) inflate.findViewById(R.id.L3);
ImageView imageView = (ImageView) inflate.findViewById(R.id.I1);
ImageView imageView2 = (ImageView) inflate.findViewById(R.id.I2);
HomeActivity.this._SHAKIB(imageView);
HomeActivity.this._rippleRoundStroke(linearLayout2, "#263238", "#EEEEEE", 10.0d, 0.0d, "#FFFFFF");
HomeActivity.this._rippleRoundStroke(linearLayout3, "#263238", "#EEEEEE", 10.0d, 0.0d, "#FFFFFF");
linearLayout.setBackground(new GradientDrawable() {
public GradientDrawable getIns(int i, int i2) {
setCornerRadius(i);
setColor(i2);
return this;
}
}.getIns(20, -1));
imageView2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view2) {
create.dismiss();
}
});
linearLayout2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view2) {
if (!HomeActivity.this.Group2.equals("")) {
HomeActivity.this.Website.setAction("android.intent.action.VIEW");
HomeActivity.this.Website.setData(Uri.parse(HomeActivity.this.Group2));
HomeActivity.this.startActivity(HomeActivity.this.Website);
} else {
SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Link No Available");
}
create.dismiss();
}
});
linearLayout3.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view2) {
if (!HomeActivity.this.Group1.equals("")) {
HomeActivity.this.Website.setAction("android.intent.action.VIEW");
HomeActivity.this.Website.setData(Uri.parse(HomeActivity.this.Group1));
HomeActivity.this.startActivity(HomeActivity.this.Website);
} else {
SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Link No Available");
}
create.dismiss();
}
});
create.setCancelable(false);
create.show();
}
});
this.linear9.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
HomeActivity.this.ShareUrl = "Play Games :-\n".concat(HomeActivity.this.AppUrl);
Intent intent = new Intent();
intent.setAction("android.intent.action.SEND");
intent.putExtra("android.intent.extra.TEXT", HomeActivity.this.ShareUrl);
intent.setType("text/plain");
HomeActivity.this.startActivity(Intent.createChooser(intent, null));
}
});
this.linear10.setOnClickListener(new AnonymousClass13());
this.Menu1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
HomeActivity.this.MenuBg.setVisibility(8);
HomeActivity.this.PlayBg.setVisibility(0);
}
});
this.Menu2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
HomeActivity.this.Screen.setClass(HomeActivity.this.getApplicationContext(), LiveActivity.class);
HomeActivity.this.startActivity(HomeActivity.this.Screen);
}
});
this.linear43.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
HomeActivity.this.Screen.setClass(HomeActivity.this.getApplicationContext(), WalletActivity.class);
HomeActivity.this.startActivity(HomeActivity.this.Screen);
}
});
this.Menu3.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
HomeActivity.this.PlayBg.setVisibility(8);
HomeActivity.this.MenuBg.setVisibility(0);
}
});
this._fab.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (!HomeActivity.this.WhatsApp.equals("")) {
HomeActivity.this.Website.setAction("android.intent.action.VIEW");
HomeActivity.this.Website.setData(Uri.parse(HomeActivity.this.WhatsApp));
HomeActivity.this.startActivity(HomeActivity.this.Website);
return;
}
SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Link No Available");
}
});
this._Users_child_listener = new ChildEventListener() {
@Override
public void onChildAdded(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())) {
HomeActivity.this.KilledId.setText(hashMap.get("Killed").toString());
HomeActivity.this.Name.setText(hashMap.get("Name").toString());
HomeActivity.this.NameId.setText(hashMap.get("Name").toString());
HomeActivity.this.PlayedId.setText(hashMap.get("Played").toString());
HomeActivity.this.Number.setText(hashMap.get("Mobile").toString());
HomeActivity.this.PromoCode = hashMap.get("PromoCode").toString();
HomeActivity.this.balance.setText("৳ ".concat(hashMap.get("Balance").toString()));
HomeActivity.this.winblance.setText("৳".concat(hashMap.get("Winning").toString()));
HomeActivity.this.BalanceId.setText("৳ ".concat(hashMap.get("Balance").toString()));
HomeActivity.this.WinningId.setText("৳".concat(hashMap.get("Winning").toString()));
if (!hashMap.get("UsersBan").toString().equals("Ban")) {
HomeActivity.this.Users.child(hashMap.get("UsersBan").toString()).removeValue();
return;
}
HomeActivity.this.Screen.setClass(HomeActivity.this.getApplicationContext(), BanActivity.class);
HomeActivity.this.startActivity(HomeActivity.this.Screen);
HomeActivity.this.finish();
}
}
@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())) {
HomeActivity.this.KilledId.setText(hashMap.get("Killed").toString());
HomeActivity.this.Name.setText(hashMap.get("Name").toString());
HomeActivity.this.NameId.setText(hashMap.get("Name").toString());
HomeActivity.this.PlayedId.setText(hashMap.get("Played").toString());
HomeActivity.this.Number.setText(hashMap.get("Mobile").toString());
HomeActivity.this.PromoCode = hashMap.get("PromoCode").toString();
HomeActivity.this.balance.setText("৳ ".concat(hashMap.get("Balance").toString()));
HomeActivity.this.winblance.setText("৳".concat(hashMap.get("Winning").toString()));
HomeActivity.this.BalanceId.setText("৳ ".concat(hashMap.get("Balance").toString()));
HomeActivity.this.WinningId.setText("৳".concat(hashMap.get("Winning").toString()));
if (!hashMap.get("UsersBan").toString().equals("Ban")) {
HomeActivity.this.Users.child(hashMap.get("UsersBan").toString()).removeValue();
return;
}
HomeActivity.this.Screen.setClass(HomeActivity.this.getApplicationContext(), BanActivity.class);
HomeActivity.this.startActivity(HomeActivity.this.Screen);
HomeActivity.this.finish();
}
}
@Override
public void onChildMoved(DataSnapshot dataSnapshot, String str) {
}
@Override
public void onChildRemoved(DataSnapshot dataSnapshot) {
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())) {
HomeActivity.this.KilledId.setText(hashMap.get("Killed").toString());
HomeActivity.this.Name.setText(hashMap.get("Name").toString());
HomeActivity.this.NameId.setText(hashMap.get("Name").toString());
HomeActivity.this.PlayedId.setText(hashMap.get("Played").toString());
HomeActivity.this.Number.setText(hashMap.get("Mobile").toString());
HomeActivity.this.PromoCode = hashMap.get("PromoCode").toString();
HomeActivity.this.balance.setText("৳ ".concat(hashMap.get("Balance").toString()));
HomeActivity.this.winblance.setText("৳".concat(hashMap.get("Winning").toString()));
HomeActivity.this.BalanceId.setText("৳ ".concat(hashMap.get("Balance").toString()));
HomeActivity.this.WinningId.setText("৳".concat(hashMap.get("Winning").toString()));
if (!hashMap.get("UsersBan").toString().equals("Ban")) {
HomeActivity.this.Users.child(hashMap.get("UsersBan").toString()).removeValue();
return;
}
HomeActivity.this.Screen.setClass(HomeActivity.this.getApplicationContext(), BanActivity.class);
HomeActivity.this.startActivity(HomeActivity.this.Screen);
HomeActivity.this.finish();
}
}
@Override
public void onCancelled(DatabaseError databaseError) {
databaseError.getCode();
databaseError.getMessage();
}
};
this.Users.addChildEventListener(this._Users_child_listener);
this._Rules_child_listener = new ChildEventListener() {
@Override
public void onChildAdded(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("Rules")) {
HomeActivity.this.ScrollingTv.setText(hashMap.get("Rule").toString());
}
}
@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("Rules")) {
HomeActivity.this.ScrollingTv.setText(hashMap.get("Rule").toString());
}
}
@Override
public void onChildMoved(DataSnapshot dataSnapshot, String str) {
}
@Override
public void onChildRemoved(DataSnapshot dataSnapshot) {
GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
};
String key = dataSnapshot.getKey();
HashMap hashMap = (HashMap) dataSnapshot.getValue(genericTypeIndicator);
if (key.equals("Rules")) {
HomeActivity.this.ScrollingTv.setText(hashMap.get("Rule").toString());
}
}
@Override
public void onCancelled(DatabaseError databaseError) {
databaseError.getCode();
databaseError.getMessage();
}
};
this.Rules.addChildEventListener(this._Rules_child_listener);
this._Admin_child_listener = new ChildEventListener() {
@Override
public void onChildAdded(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("Admin")) {
HomeActivity.this.AppUrl = hashMap.get("App Link").toString();
HomeActivity.this.WhatsApp = hashMap.get("WhatsApp").toString();
HomeActivity.this.Group1 = hashMap.get("Group1").toString();
HomeActivity.this.Group2 = hashMap.get("Group2").toString();
}
}
@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("Admin")) {
HomeActivity.this.AppUrl = hashMap.get("App Link").toString();
HomeActivity.this.WhatsApp = hashMap.get("WhatsApp").toString();
HomeActivity.this.Group1 = hashMap.get("Group1").toString();
HomeActivity.this.Group2 = hashMap.get("Group2").toString();
}
}
@Override
public void onChildMoved(DataSnapshot dataSnapshot, String str) {
}
@Override
public void onChildRemoved(DataSnapshot dataSnapshot) {
GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
};
String key = dataSnapshot.getKey();
HashMap hashMap = (HashMap) dataSnapshot.getValue(genericTypeIndicator);
if (key.equals("Admin")) {
HomeActivity.this.AppUrl = hashMap.get("App Link").toString();
HomeActivity.this.WhatsApp = hashMap.get("WhatsApp").toString();
HomeActivity.this.Group1 = hashMap.get("Group1").toString();
HomeActivity.this.Group2 = hashMap.get("Group2").toString();
}
}
@Override
public void onCancelled(DatabaseError databaseError) {
databaseError.getCode();
databaseError.getMessage();
}
};
this.Admin.addChildEventListener(this._Admin_child_listener);
this._Sliders_child_listener = new ChildEventListener() {
@Override
public void onChildAdded(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("Sliders")) {
if (hashMap.containsKey("Image1")) {
HomeActivity.this.Slides.edit().putString("Img1", hashMap.get("Image1").toString()).commit();
}
if (hashMap.containsKey("Image2")) {
HomeActivity.this.Slides.edit().putString("Img2", hashMap.get("Image2").toString()).commit();
}
if (hashMap.containsKey("Image3")) {
HomeActivity.this.Slides.edit().putString("Img3", hashMap.get("Image3").toString()).commit();
}
if (hashMap.containsKey("Image4")) {
HomeActivity.this.Slides.edit().putString("Img4", hashMap.get("Image4").toString()).commit();
}
if (hashMap.containsKey("Image5")) {
HomeActivity.this.Slides.edit().putString("Img5", hashMap.get("Image5").toString()).commit();
}
if (hashMap.containsKey("Link1")) {
HomeActivity.this.Slides.edit().putString("Link1", hashMap.get("Link1").toString()).commit();
}
if (hashMap.containsKey("Link2")) {
HomeActivity.this.Slides.edit().putString("Link2", hashMap.get("Link2").toString()).commit();
}
if (hashMap.containsKey("Link3")) {
HomeActivity.this.Slides.edit().putString("Link3", hashMap.get("Link3").toString()).commit();
}
if (hashMap.containsKey("Link4")) {
HomeActivity.this.Slides.edit().putString("Link4", hashMap.get("Link4").toString()).commit();
}
if (hashMap.containsKey("Link5")) {
HomeActivity.this.Slides.edit().putString("Link5", hashMap.get("Link5").toString()).commit();
}
}
}
@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("Sliders")) {
if (hashMap.containsKey("Image1")) {
HomeActivity.this.Slides.edit().putString("Img1", hashMap.get("Image1").toString()).commit();
}
if (hashMap.containsKey("Image2")) {
HomeActivity.this.Slides.edit().putString("Img2", hashMap.get("Image2").toString()).commit();
}
if (hashMap.containsKey("Image3")) {
HomeActivity.this.Slides.edit().putString("Img3", hashMap.get("Image3").toString()).commit();
}
if (hashMap.containsKey("Image4")) {
HomeActivity.this.Slides.edit().putString("Img4", hashMap.get("Image4").toString()).commit();
}
if (hashMap.containsKey("Image5")) {
HomeActivity.this.Slides.edit().putString("Img5", hashMap.get("Image5").toString()).commit();
}
if (hashMap.containsKey("Link1")) {
HomeActivity.this.Slides.edit().putString("Link1", hashMap.get("Link1").toString()).commit();
}
if (hashMap.containsKey("Link2")) {
HomeActivity.this.Slides.edit().putString("Link2", hashMap.get("Link2").toString()).commit();
}
if (hashMap.containsKey("Link3")) {
HomeActivity.this.Slides.edit().putString("Link3", hashMap.get("Link3").toString()).commit();
}
if (hashMap.containsKey("Link4")) {
HomeActivity.this.Slides.edit().putString("Link4", hashMap.get("Link4").toString()).commit();
}
if (hashMap.containsKey("Link5")) {
HomeActivity.this.Slides.edit().putString("Link5", hashMap.get("Link5").toString()).commit();
}
}
}
@Override
public void onChildMoved(DataSnapshot dataSnapshot, String str) {
}
@Override
public void onChildRemoved(DataSnapshot dataSnapshot) {
GenericTypeIndicator<HashMap<String, Object>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, Object>>() {
};
String key = dataSnapshot.getKey();
HashMap hashMap = (HashMap) dataSnapshot.getValue(genericTypeIndicator);
if (key.equals("Sliders")) {
if (hashMap.containsKey("Image1")) {
HomeActivity.this.Slides.edit().putString("Img1", hashMap.get("Image1").toString()).commit();
}
if (hashMap.containsKey("Image2")) {
HomeActivity.this.Slides.edit().putString("Img2", hashMap.get("Image2").toString()).commit();
}
if (hashMap.containsKey("Image3")) {
HomeActivity.this.Slides.edit().putString("Img3", hashMap.get("Image3").toString()).commit();
}
if (hashMap.containsKey("Image4")) {
HomeActivity.this.Slides.edit().putString("Img4", hashMap.get("Image4").toString()).commit();
}
if (hashMap.containsKey("Image5")) {
HomeActivity.this.Slides.edit().putString("Img5", hashMap.get("Image5").toString()).commit();
}
if (hashMap.containsKey("Link1")) {
HomeActivity.this.Slides.edit().putString("Link1", hashMap.get("Link1").toString()).commit();
}
if (hashMap.containsKey("Link2")) {
HomeActivity.this.Slides.edit().putString("Link2", hashMap.get("Link2").toString()).commit();
}
if (hashMap.containsKey("Link3")) {
HomeActivity.this.Slides.edit().putString("Link3", hashMap.get("Link3").toString()).commit();
}
if (hashMap.containsKey("Link4")) {
HomeActivity.this.Slides.edit().putString("Link4", hashMap.get("Link4").toString()).commit();
}
if (hashMap.containsKey("Link5")) {
HomeActivity.this.Slides.edit().putString("Link5", hashMap.get("Link5").toString()).commit();
}
}
}
@Override
public void onCancelled(DatabaseError databaseError) {
databaseError.getCode();
databaseError.getMessage();
}
};
this.Sliders.addChildEventListener(this._Sliders_child_listener);
this._WiFi_request_listener = new AnonymousClass23();
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();
}
};
}
public class AnonymousClass13 implements View.OnClickListener {
AnonymousClass13() {
}
@Override
public void onClick(View view) {
HomeActivity.this.Dialog.setTitle("CONFIRMATION");
HomeActivity.this.Dialog.setIcon(R.drawable.logout);
HomeActivity.this.Dialog.setMessage("Are You Sure LogOut This Account ?");
HomeActivity.this.Dialog.setPositiveButton("YES", new AnonymousClass1());
HomeActivity.this.Dialog.setNegativeButton("NO", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
}
});
HomeActivity.this.Dialog.create().show();
}
class AnonymousClass1 implements DialogInterface.OnClickListener {
AnonymousClass1() {
}
@Override
public void onClick(DialogInterface dialogInterface, int i) {
HomeActivity.this._Loading(true);
HomeActivity.this.LogOut = new TimerTask() {
@Override
public void run() {
HomeActivity.this.runOnUiThread(new Runnable() {
@Override
public void run() {
HomeActivity.this.Screen.setClass(HomeActivity.this.getApplicationContext(), CreateActivity.class);
HomeActivity.this.startActivity(HomeActivity.this.Screen);
FirebaseAuth.getInstance().signOut();
HomeActivity.this._Loading(false);
HomeActivity.this.finish();
}
});
}
};
HomeActivity.this._timer.schedule(HomeActivity.this.LogOut, 1000L);
}
}
}
public class AnonymousClass23 implements RequestNetwork.RequestListener {
AnonymousClass23() {
}
@Override
public void onResponse(String str, String str2, HashMap<String, Object> hashMap) {
HomeActivity.this.LogOut = new TimerTask() {
@Override
public void run() {
HomeActivity.this.runOnUiThread(new Runnable() {
@Override
public void run() {
HomeActivity.this._Loading(false);
}
});
}
};
HomeActivity.this._timer.schedule(HomeActivity.this.LogOut, 500L);
}
@Override
public void onErrorResponse(String str, String str2) {
HomeActivity.this._Loading(true);
}
}
private void initializeLogic() {
this.WiFi.startRequestNetwork("GET", "https://www.google.com", ExifInterface.GPS_MEASUREMENT_IN_PROGRESS, this._WiFi_request_listener);
_Design();
_Loading(true);
this._fab.setImageResource(R.drawable.fab);
this.MenuBg.setVisibility(8);
HashMap<String, Object> hashMap = new HashMap<>();
hashMap.put(ExifInterface.GPS_MEASUREMENT_IN_PROGRESS, "B");
this.Slide.add(hashMap);
HashMap<String, Object> hashMap2 = new HashMap<>();
hashMap2.put("C", "D");
this.Slide.add(hashMap2);
HashMap<String, Object> hashMap3 = new HashMap<>();
hashMap3.put(ExifInterface.LONGITUDE_EAST, "F");
this.Slide.add(hashMap3);
HashMap<String, Object> hashMap4 = new HashMap<>();
hashMap4.put("G", "H");
this.Slide.add(hashMap4);
HashMap<String, Object> hashMap5 = new HashMap<>();
hashMap5.put("I", "J");
this.Slide.add(hashMap5);
this.ViewPage.setAdapter(new ViewPageAdapter(this.Slide));
this.Time = new TimerTask() {
@Override
public void run() {
HomeActivity.this.runOnUiThread(new Runnable() {
@Override
public void run() {
HomeActivity.this.ViewSlide = HomeActivity.this.ViewPage.getCurrentItem() + 1;
if (HomeActivity.this.ViewSlide > 4.0d) {
HomeActivity.this.ViewSlide = 0.0d;
HomeActivity.this.ViewPage.setCurrentItem((int) HomeActivity.this.ViewSlide);
} else {
HomeActivity.this.ViewPage.setCurrentItem((int) HomeActivity.this.ViewSlide);
}
}
});
}
};
this._timer.scheduleAtFixedRate(this.Time, 3500L, 3500L);
}
@Override
public void onBackPressed() {
if (this.PlayBg.getVisibility() == 8) {
this.MenuBg.setVisibility(8);
this.PlayBg.setVisibility(0);
return;
}
this.Dialog.setTitle("CONFIRMATION");
this.Dialog.setIcon(R.drawable.logout);
this.Dialog.setMessage("Are You Sure Want To Exit The App ?");
this.Dialog.setPositiveButton("YES", new AnonymousClass35());
this.Dialog.setNegativeButton("NO", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
}
});
this.Dialog.create().show();
}
class AnonymousClass35 implements DialogInterface.OnClickListener {
AnonymousClass35() {
}
@Override
public void onClick(DialogInterface dialogInterface, int i) {
HomeActivity.this._Loading(true);
HomeActivity.this.LogOut = new TimerTask() {
@Override
public void run() {
HomeActivity.this.runOnUiThread(new Runnable() {
@Override
public void run() {
HomeActivity.this._Loading(false);
HomeActivity.this.finishAffinity();
}
});
}
};
HomeActivity.this._timer.schedule(HomeActivity.this.LogOut, 1000L);
}
}
public void _Design() {
_Scrolling(this.ScrollingTv);
this.Scroll.setVerticalScrollBarEnabled(false);
this.RulesBg.setBackground(new GradientDrawable() {
public GradientDrawable getIns(int i, int i2, int i3, int i4) {
setCornerRadius(i);
setStroke(i2, i3);
setColor(i4);
return this;
}
}.getIns(10, 2, -6381922, 0));
this.RulesBg.setElevation(7.0f);
this.Winning_Balance.setBackground(new GradientDrawable() {
public GradientDrawable getIns(int i, int i2, int i3, int i4) {
setCornerRadius(i);
setStroke(i2, i3);
setColor(i4);
return this;
}
}.getIns(10, 2, -6381922, 0));
this.Winning_Balance.setElevation(7.0f);
this.Balance.setBackground(new GradientDrawable() {
public GradientDrawable getIns(int i, int i2, int i3, int i4) {
setCornerRadius(i);
setStroke(i2, i3);
setColor(i4);
return this;
}
}.getIns(10, 2, -6381922, 0));
this.Balance.setElevation(7.0f);
this.Dots1.setBackground(new GradientDrawable() {
public GradientDrawable getIns(int i, int i2) {
setCornerRadius(i);
setColor(i2);
return this;
}
}.getIns(10, -1));
this.Dots3.setBackground(new GradientDrawable() {
public GradientDrawable getIns(int i, int i2) {
setCornerRadius(i);
setColor(i2);
return this;
}
}.getIns(10, -1));
this.Dots2.setBackground(new GradientDrawable() {
public GradientDrawable getIns(int i, int i2) {
setCornerRadius(i);
setColor(i2);
return this;
}
}.getIns(10, -1));
this.Dots4.setBackground(new GradientDrawable() {
public GradientDrawable getIns(int i, int i2) {
setCornerRadius(i);
setColor(i2);
return this;
}
}.getIns(10, -1));
this.Dots5.setBackground(new GradientDrawable() {
public GradientDrawable getIns(int i, int i2) {
setCornerRadius(i);
setColor(i2);
return this;
}
}.getIns(10, -1));
this.linear16.setBackground(new GradientDrawable() {
public GradientDrawable getIns(int i, int i2) {
setCornerRadius(i);
setColor(i2);
return this;
}
}.getIns(10, -1));
this.linear17.setBackground(new GradientDrawable() {
public GradientDrawable getIns(int i, int i2) {
setCornerRadius(i);
setColor(i2);
return this;
}
}.getIns(10, -1));
this.Main_Balance.setBackground(new GradientDrawable() {
public GradientDrawable getIns(int i, int i2) {
setCornerRadius(i);
setColor(i2);
return this;
}
}.getIns(10, -1));
this.winning_balance_manu.setBackground(new GradientDrawable() {
public GradientDrawable getIns(int i, int i2) {
setCornerRadius(i);
setColor(i2);
return this;
}
}.getIns(10, -1));
this.Totall_Match.setBackground(new GradientDrawable() {
public GradientDrawable getIns(int i, int i2) {
setCornerRadius(i);
setColor(i2);
return this;
}
}.getIns(10, -1));
this.Total_Klied.setBackground(new GradientDrawable() {
public GradientDrawable getIns(int i, int i2) {
setCornerRadius(i);
setColor(i2);
return this;
}
}.getIns(10, -1));
this.FrerFireBg.setBackground(new GradientDrawable() {
public GradientDrawable getIns(int i, int i2) {
setCornerRadius(i);
setColor(i2);
return this;
}
}.getIns(17, -49152));
this.LudoBg.setBackground(new GradientDrawable() {
public GradientDrawable getIns(int i, int i2) {
setCornerRadius(i);
setColor(i2);
return this;
}
}.getIns(17, -49152));
_rippleRoundStroke(this.Menu1, "#FFFFFF", "#BDBDBD", 50.0d, 0.0d, "#FFFFFF");
_rippleRoundStroke(this.Menu2, "#FFFFFF", "#BDBDBD", 50.0d, 0.0d, "#FFFFFF");
_rippleRoundStroke(this.Menu3, "#FFFFFF", "#BDBDBD", 50.0d, 0.0d, "#FFFFFF");
_rippleRoundStroke(this.linear43, "#FFFFFF", "#BDBDBD", 50.0d, 0.0d, "#FFFFFF");
GradientDrawable gradientDrawable = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, new int[]{Color.parseColor("#FFFFFF"), Color.parseColor("#FFFFFF")});
gradientDrawable.setCornerRadii(new float[]{35.0f, 35.0f, 35.0f, 35.0f, 0.0f, 0.0f, 0.0f, 0.0f});
gradientDrawable.setStroke(0, Color.parseColor("#000000"));
this.NavigationBg.setElevation(10.0f);
this.NavigationBg.setBackground(gradientDrawable);
}
public void _Loading(boolean z) {
if (z) {
if (this.coreprog == null) {
this.coreprog = new ProgressDialog(this);
this.coreprog.setCancelable(false);
this.coreprog.setCanceledOnTouchOutside(false);
this.coreprog.requestWindowFeature(1);
this.coreprog.getWindow().setBackgroundDrawable(new ColorDrawable(0));
}
this.coreprog.show();
this.coreprog.setContentView(R.layout.loading);
LinearLayout linearLayout = (LinearLayout) this.coreprog.findViewById(R.id.ProgBG);
GradientDrawable gradientDrawable = new GradientDrawable();
gradientDrawable.setColor(Color.parseColor("#FFFFFF"));
gradientDrawable.setCornerRadius(40.0f);
gradientDrawable.setStroke(0, -1);
linearLayout.setBackground(gradientDrawable);
return;
}
if (this.coreprog != null) {
this.coreprog.dismiss();
}
}
public void _Scrolling(TextView textView) {
textView.setSingleLine(true);
textView.setEllipsize(TextUtils.TruncateAt.MARQUEE);
textView.setSelected(true);
}
public void _SHAKIB(View view) {
this.OB.setTarget(view);
this.OB.setPropertyName(Key.ROTATION);
this.OB.setFloatValues(-60.0f, 0.0f);
this.OB.setDuration(1000L);
this.OB.setInterpolator(new BounceInterpolator());
this.OB.start();
}
public void _rippleRoundStroke(View view, String str, String str2, double d, double d2, String str3) {
GradientDrawable gradientDrawable = new GradientDrawable();
gradientDrawable.setColor(Color.parseColor(str));
gradientDrawable.setCornerRadius((float) d);
gradientDrawable.setStroke((int) d2, Color.parseColor("#" + str3.replace("#", "")));
view.setBackground(new RippleDrawable(new ColorStateList(new int[][]{new int[0]}, new int[]{Color.parseColor(str2)}), gradientDrawable, null));
}
public class ViewPageAdapter extends PagerAdapter {
Context _context;
ArrayList<HashMap<String, Object>> _data;
public ViewPageAdapter(Context context, ArrayList<HashMap<String, Object>> arrayList) {
this._context = context;
this._data = arrayList;
}
public ViewPageAdapter(ArrayList<HashMap<String, Object>> arrayList) {
this._context = HomeActivity.this.getApplicationContext();
this._data = arrayList;
}
@Override
public int getCount() {
return this._data.size();
}
@Override
public boolean isViewFromObject(View view, Object obj) {
return view == obj;
}
@Override
public void destroyItem(ViewGroup viewGroup, int i, Object obj) {
viewGroup.removeView((View) obj);
}
@Override
public int getItemPosition(Object obj) {
return super.getItemPosition(obj);
}
@Override
public CharSequence getPageTitle(int i) {
return "page " + String.valueOf(i);
}
@Override
public Object instantiateItem(ViewGroup viewGroup, int i) {
View inflate = LayoutInflater.from(this._context).inflate(R.layout.slider, viewGroup, false);
ImageView imageView = (ImageView) inflate.findViewById(R.id.Image);
if (i == 0) {
Glide.with(HomeActivity.this.getApplicationContext()).load(Uri.parse(HomeActivity.this.Slides.getString("Img1", ""))).into(imageView);
imageView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (!HomeActivity.this.Slides.getString("Link1", "").equals("")) {
HomeActivity.this.Website.setAction("android.intent.action.VIEW");
HomeActivity.this.Website.setData(Uri.parse(HomeActivity.this.Slides.getString("Link1", "")));
HomeActivity.this.startActivity(HomeActivity.this.Website);
}
}
});
}
if (i == 1) {
Glide.with(HomeActivity.this.getApplicationContext()).load(Uri.parse(HomeActivity.this.Slides.getString("Img2", ""))).into(imageView);
imageView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (!HomeActivity.this.Slides.getString("Link2", "").equals("")) {
HomeActivity.this.Website.setAction("android.intent.action.VIEW");
HomeActivity.this.Website.setData(Uri.parse(HomeActivity.this.Slides.getString("Link2", "")));
HomeActivity.this.startActivity(HomeActivity.this.Website);
}
}
});
}
if (i == 2) {
Glide.with(HomeActivity.this.getApplicationContext()).load(Uri.parse(HomeActivity.this.Slides.getString("Img3", ""))).into(imageView);
imageView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (!HomeActivity.this.Slides.getString("Link3", "").equals("")) {
HomeActivity.this.Website.setAction("android.intent.action.VIEW");
HomeActivity.this.Website.setData(Uri.parse(HomeActivity.this.Slides.getString("Link3", "")));
HomeActivity.this.startActivity(HomeActivity.this.Website);
}
}
});
}
if (i == 3) {
Glide.with(HomeActivity.this.getApplicationContext()).load(Uri.parse(HomeActivity.this.Slides.getString("Img4", ""))).into(imageView);
imageView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (!HomeActivity.this.Slides.getString("Link4", "").equals("")) {
HomeActivity.this.Website.setAction("android.intent.action.VIEW");
HomeActivity.this.Website.setData(Uri.parse(HomeActivity.this.Slides.getString("Link4", "")));
HomeActivity.this.startActivity(HomeActivity.this.Website);
}
}
});
}
if (i == 4) {
Glide.with(HomeActivity.this.getApplicationContext()).load(Uri.parse(HomeActivity.this.Slides.getString("Img5", ""))).into(imageView);
imageView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (!HomeActivity.this.Slides.getString("Link5", "").equals("")) {
HomeActivity.this.Website.setAction("android.intent.action.VIEW");
HomeActivity.this.Website.setData(Uri.parse(HomeActivity.this.Slides.getString("Link5", "")));
HomeActivity.this.startActivity(HomeActivity.this.Website);
}
}
});
}
viewGroup.addView(inflate);
return inflate;
}
}
@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;
}
}