From a5ecd6c37dcd66f2d7146783aa7c74a08f8b8c6b Mon Sep 17 00:00:00 2001 From: xC3FFF0E <78732474+xC3FFF0E@users.noreply.github.com> Date: Fri, 3 May 2024 16:00:22 +0800 Subject: Update MainActivity.java --- .../java/com/xc3fff0e/xmanager/MainActivity.java | 6327 +++++++++----------- 1 file changed, 2994 insertions(+), 3333 deletions(-) (limited to 'app/src/main/java') diff --git a/app/src/main/java/com/xc3fff0e/xmanager/MainActivity.java b/app/src/main/java/com/xc3fff0e/xmanager/MainActivity.java index 72cf746..c2dc1cd 100644 --- a/app/src/main/java/com/xc3fff0e/xmanager/MainActivity.java +++ b/app/src/main/java/com/xc3fff0e/xmanager/MainActivity.java @@ -93,6 +93,7 @@ import com.google.android.ump.ConsentRequestParameters; import com.google.android.ump.FormError; import com.google.android.ump.UserMessagingPlatform; + public class MainActivity extends AppCompatActivity { private RewardedAd mRewardedAd; @@ -160,7 +161,6 @@ public class MainActivity extends AppCompatActivity { private String mirror_0 = ""; private String installation_failed_spap_desc_0 = ""; private String Wave_Patched = ""; - private double CLICKER_5 = 0; private String Installed_Checker_Wave = ""; private double Installed_Version_Wave = 0; private double Downloaded_Version_Wave = 0; @@ -307,7 +307,6 @@ public class MainActivity extends AppCompatActivity { private LinearLayout box_20_sub_1; private LinearLayout box_20_sub_2; private LinearLayout box_20_sub_3; - private LinearLayout box_20_sub_4; private LinearLayout title_box_8; private LinearLayout box_hide_stock_patched; private TextView hide_stock_patched; @@ -320,10 +319,6 @@ public class MainActivity extends AppCompatActivity { private LinearLayout box_hide_lite_patched; private TextView hide_lite_patched; private Switch hide_lite_patched_switch; - private LinearLayout title_box_11; - private LinearLayout box_hide_wave_patched; - private TextView hide_wave_patched; - private Switch hide_wave_patched_switch; private LinearLayout box_5_sub_1; private TextView theme; private LinearLayout box_theme_switch; @@ -471,8 +466,6 @@ public class MainActivity extends AppCompatActivity { private LinearLayout main_box_1; private LinearLayout main_box_2; private LinearLayout main_box_3; - private LinearLayout main_box_12; - private LinearLayout main_box_7; private LinearLayout main_box_19; private LinearLayout main_box_6; private LinearLayout box_sub_header; @@ -526,24 +519,6 @@ public class MainActivity extends AppCompatActivity { private TextView versions_3; private LinearLayout box_sub_7; private ImageView version_oc_03; - private LinearLayout box_separator_6; - private LinearLayout box_sub_4; - private LinearLayout box_separator_7; - private TextView title_5; - private LinearLayout box_10; - private LinearLayout box_11; - private LinearLayout box_separator_5; - private LinearLayout box_12; - private ListView list_items_4; - private TextView title_4; - private LinearLayout box_4_sub; - private TextView patched_4; - private TextView sub_text_4; - private LinearLayout box_switch_4; - private TextView sub_10; - private TextView versions_4; - private LinearLayout box_sub_8; - private ImageView version_oc_04; private LinearLayout box_separator_8; private LinearLayout box_sub_9; private LinearLayout box_separator_9; @@ -559,8 +534,6 @@ public class MainActivity extends AppCompatActivity { private TextView sub_installed_c; private TextView sub_separator_2; private TextView sub_installed_l; - private TextView sub_separator_3; - private TextView sub_installed_w; private TextView changelogs; private LinearLayout box_changelogs; private ImageView changelogs_oc; @@ -758,7 +731,6 @@ public class MainActivity extends AppCompatActivity { box_20_sub_1 = findViewById(R.id.box_20_sub_1); box_20_sub_2 = findViewById(R.id.box_20_sub_2); box_20_sub_3 = findViewById(R.id.box_20_sub_3); - box_20_sub_4 = findViewById(R.id.box_20_sub_4); title_box_8 = findViewById(R.id.title_box_8); box_hide_stock_patched = findViewById(R.id.box_hide_stock_patched); hide_stock_patched = findViewById(R.id.hide_stock_patched); @@ -771,10 +743,6 @@ public class MainActivity extends AppCompatActivity { box_hide_lite_patched = findViewById(R.id.box_hide_lite_patched); hide_lite_patched = findViewById(R.id.hide_lite_patched); hide_lite_patched_switch = findViewById(R.id.hide_lite_patched_switch); - title_box_11 = findViewById(R.id.title_box_11); - box_hide_wave_patched = findViewById(R.id.box_hide_wave_patched); - hide_wave_patched = findViewById(R.id.hide_wave_patched); - hide_wave_patched_switch = findViewById(R.id.hide_wave_patched_switch); box_5_sub_1 = findViewById(R.id.box_5_sub_1); theme = findViewById(R.id.theme); box_theme_switch = findViewById(R.id.box_theme_switch); @@ -922,8 +890,6 @@ public class MainActivity extends AppCompatActivity { main_box_1 = findViewById(R.id.main_box_1); main_box_2 = findViewById(R.id.main_box_2); main_box_3 = findViewById(R.id.main_box_3); - main_box_12 = findViewById(R.id.main_box_12); - main_box_7 = findViewById(R.id.main_box_7); main_box_19 = findViewById(R.id.main_box_19); main_box_6 = findViewById(R.id.main_box_6); box_sub_header = findViewById(R.id.box_sub_header); @@ -977,24 +943,6 @@ public class MainActivity extends AppCompatActivity { versions_3 = findViewById(R.id.versions_3); box_sub_7 = findViewById(R.id.box_sub_7); version_oc_03 = findViewById(R.id.version_oc_03); - box_separator_6 = findViewById(R.id.box_separator_6); - box_sub_4 = findViewById(R.id.box_sub_4); - box_separator_7 = findViewById(R.id.box_separator_7); - title_5 = findViewById(R.id.title_5); - box_10 = findViewById(R.id.box_10); - box_11 = findViewById(R.id.box_11); - box_separator_5 = findViewById(R.id.box_separator_5); - box_12 = findViewById(R.id.box_12); - list_items_4 = findViewById(R.id.list_items_4); - title_4 = findViewById(R.id.title_4); - box_4_sub = findViewById(R.id.box_4_sub); - patched_4 = findViewById(R.id.patched_4); - sub_text_4 = findViewById(R.id.sub_text_4); - box_switch_4 = findViewById(R.id.box_switch_4); - sub_10 = findViewById(R.id.sub_10); - versions_4 = findViewById(R.id.versions_4); - box_sub_8 = findViewById(R.id.box_sub_8); - version_oc_04 = findViewById(R.id.version_oc_04); box_separator_8 = findViewById(R.id.box_separator_8); box_sub_9 = findViewById(R.id.box_sub_9); box_separator_9 = findViewById(R.id.box_separator_9); @@ -1010,8 +958,6 @@ public class MainActivity extends AppCompatActivity { sub_installed_c = findViewById(R.id.sub_installed_c); sub_separator_2 = findViewById(R.id.sub_separator_2); sub_installed_l = findViewById(R.id.sub_installed_l); - sub_separator_3 = findViewById(R.id.sub_separator_3); - sub_installed_w = findViewById(R.id.sub_installed_w); changelogs = findViewById(R.id.changelogs); box_changelogs = findViewById(R.id.box_changelogs); changelogs_oc = findViewById(R.id.changelogs_oc); @@ -1215,7 +1161,7 @@ public class MainActivity extends AppCompatActivity { }); AlertDialog = Update_Authorized.create(); AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); + _AlertDialog_Color(); AlertDialog.show(); } catch(Exception e) { @@ -1247,7 +1193,7 @@ public class MainActivity extends AppCompatActivity { Update_Latest.setMessage(Html.fromHtml(""+Message+"")); AlertDialog = Update_Latest.create(); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); + _AlertDialog_Color(); AlertDialog.show(); } catch(Exception e) { @@ -1279,6 +1225,38 @@ public class MainActivity extends AppCompatActivity { } } + if (FileUtil.isExistFile("/storage/emulated/0/Download/Patched (xManager).apk")) { + FileUtil.deleteFile("/storage/emulated/0/Download/Patched (xManager).apk"); + } + else { + if (!FileUtil.isExistFile("/storage/emulated/0/Download/Patched (xManager).apk")) { + + } + } + if (FileUtil.isExistFile("/storage/emulated/0/Download/Patched Cloned (xManager).apk")) { + FileUtil.deleteFile("/storage/emulated/0/Download/Patched Cloned (xManager).apk"); + } + else { + if (!FileUtil.isExistFile("/storage/emulated/0/Download/Patched Cloned (xManager).apk")) { + + } + } + if (FileUtil.isExistFile("/storage/emulated/0/Download/Patched Lite (xManager).apk")) { + FileUtil.deleteFile("/storage/emulated/0/Download/Patched Lite (xManager).apk"); + } + else { + if (!FileUtil.isExistFile("/storage/emulated/0/Download/Patched Lite (xManager).apk")) { + + } + } + if (FileUtil.isExistFile("/storage/emulated/0/Download/xManager Update.apk")) { + FileUtil.deleteFile("/storage/emulated/0/Download/xManager Update.apk"); + } + else { + if (!FileUtil.isExistFile("/storage/emulated/0/Download/xManager Update.apk")) { + + } + } if (DELETE == 1) { com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Successfully Deleted", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); } @@ -1859,49 +1837,6 @@ public class MainActivity extends AppCompatActivity { } }); - hide_wave_patched_switch.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View _view) { - try { - if (CHECK == 0) { - CHECK = 1; - Timer = new TimerTask() { - @Override - public void run() { - runOnUiThread(new Runnable() { - @Override - public void run() { - CHECK = 0; - } - }); - } - }; - _timer.schedule(Timer, (int)(3000)); - _Hide_Reminder(); - } - else { - } - } - catch(Exception e) { - } - - } - }); - - hide_wave_patched_switch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { - @Override - public void onCheckedChanged(CompoundButton _param1, boolean _param2) { - final boolean _isChecked = _param2; - if (_isChecked) { - HIDE_PATCHED.edit().putString("SWITCH_D", "ON").commit(); - } - else { - HIDE_PATCHED.edit().putString("SWITCH_D", "OFF").commit(); - } - COUNTER = 1; - } - }); - select_theme.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { @Override public void onItemSelected(AdapterView _param1, View _param2, int _param3, long _param4) { @@ -1989,6 +1924,55 @@ public class MainActivity extends AppCompatActivity { COUNTER = 1; _Theme_UI(); } + else { + if (_position == 14) { + THEME.edit().putString("THEME", "14").commit(); + COUNTER = 1; + _Theme_UI(); + } + else { + if (_position == 15) { + THEME.edit().putString("THEME", "15").commit(); + COUNTER = 1; + _Theme_UI(); + } + else { + if (_position == 16) { + THEME.edit().putString("THEME", "16").commit(); + COUNTER = 1; + _Theme_UI(); + } + else { + if (_position == 17) { + THEME.edit().putString("THEME", "17").commit(); + COUNTER = 1; + _Theme_UI(); + } + else { + if (_position == 18) { + THEME.edit().putString("THEME", "18").commit(); + COUNTER = 1; + _Theme_UI(); + } + else { + if (_position == 19) { + THEME.edit().putString("THEME", "19").commit(); + COUNTER = 1; + _Theme_UI(); + } + else { + if (_position == 20) { + THEME.edit().putString("THEME", "20").commit(); + COUNTER = 1; + _Theme_UI(); + } + } + } + } + } + } + } + } } } } @@ -2450,7 +2434,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched_switch.setChecked(false); hide_amoled_patched_switch.setChecked(false); hide_lite_patched_switch.setChecked(false); - hide_wave_patched_switch.setChecked(false); apk_path_location.setText("/storage/emulated/0/xManager/"); main_refresh_layout.setBackground(new GradientDrawable(GradientDrawable.Orientation.BR_TL, new int[] {0xFF000000,0xFF000000})); main_scroll_about.setBackground(new GradientDrawable(GradientDrawable.Orientation.BR_TL, new int[] {0xFF000000,0xFF000000})); @@ -2523,17 +2506,14 @@ public class MainActivity extends AppCompatActivity { version_oc_01.setImageResource(R.drawable.open); version_oc_02.setImageResource(R.drawable.close); version_oc_03.setImageResource(R.drawable.close); - version_oc_04.setImageResource(R.drawable.close); changelogs_oc.setImageResource(R.drawable.close); list_items_2.setVisibility(View.GONE); list_items_3.setVisibility(View.GONE); - list_items_4.setVisibility(View.GONE); list_items_5.setVisibility(View.GONE); CLICKER_1 = 0; CLICKER_2 = 1; CLICKER_3 = 1; CLICKER_4 = 1; - CLICKER_5 = 1; } else { if (CLICKER_1 == 0) { @@ -2582,17 +2562,14 @@ public class MainActivity extends AppCompatActivity { version_oc_01.setImageResource(R.drawable.close); version_oc_02.setImageResource(R.drawable.open); version_oc_03.setImageResource(R.drawable.close); - version_oc_04.setImageResource(R.drawable.close); changelogs_oc.setImageResource(R.drawable.close); list_items_1.setVisibility(View.GONE); list_items_3.setVisibility(View.GONE); - list_items_4.setVisibility(View.GONE); list_items_5.setVisibility(View.GONE); CLICKER_1 = 1; CLICKER_2 = 0; CLICKER_3 = 1; CLICKER_4 = 1; - CLICKER_5 = 1; } else { if (CLICKER_2 == 0) { @@ -2615,12 +2592,10 @@ public class MainActivity extends AppCompatActivity { version_oc_01.setImageResource(R.drawable.close); version_oc_02.setImageResource(R.drawable.close); version_oc_03.setImageResource(R.drawable.open); - version_oc_04.setImageResource(R.drawable.close); changelogs_oc.setImageResource(R.drawable.close); list_items_1.setVisibility(View.GONE); list_items_2.setVisibility(View.GONE); list_items_3.setVisibility(View.VISIBLE); - list_items_4.setVisibility(View.GONE); list_items_5.setVisibility(View.GONE); list_items_3.setAdapter(new List_items_3Adapter(lite_patched)); ((BaseAdapter)list_items_3.getAdapter()).notifyDataSetChanged(); @@ -2628,7 +2603,6 @@ public class MainActivity extends AppCompatActivity { CLICKER_2 = 1; CLICKER_3 = 0; CLICKER_4 = 1; - CLICKER_5 = 1; } else { if (CLICKER_3 == 0) { @@ -2644,69 +2618,30 @@ public class MainActivity extends AppCompatActivity { } }); - main_box_7.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View _view) { - if (CLICKER_4 == 1) { - version_oc_01.setImageResource(R.drawable.close); - version_oc_02.setImageResource(R.drawable.close); - version_oc_03.setImageResource(R.drawable.close); - version_oc_04.setImageResource(R.drawable.open); - changelogs_oc.setImageResource(R.drawable.close); - list_items_1.setVisibility(View.GONE); - list_items_2.setVisibility(View.GONE); - list_items_3.setVisibility(View.GONE); - list_items_4.setVisibility(View.VISIBLE); - list_items_5.setVisibility(View.GONE); - list_items_4.setAdapter(new List_items_4Adapter(wave_patched)); - ((BaseAdapter)list_items_4.getAdapter()).notifyDataSetChanged(); - CLICKER_1 = 1; - CLICKER_2 = 1; - CLICKER_3 = 1; - CLICKER_4 = 0; - CLICKER_5 = 1; - } - else { - if (CLICKER_4 == 0) { - version_oc_04.setImageResource(R.drawable.close); - list_items_4.setVisibility(View.GONE); - CLICKER_4 = 1; - } - } - Animation animation; - animation = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.fade_in); - animation.setDuration(500); version_oc_04.startAnimation(animation); - animation = null; - } - }); - main_box_6.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View _view) { - if (CLICKER_5 == 1) { + if (CLICKER_4 == 1) { version_oc_01.setImageResource(R.drawable.close); version_oc_02.setImageResource(R.drawable.close); version_oc_03.setImageResource(R.drawable.close); - version_oc_04.setImageResource(R.drawable.close); changelogs_oc.setImageResource(R.drawable.open); list_items_1.setVisibility(View.GONE); list_items_2.setVisibility(View.GONE); list_items_3.setVisibility(View.GONE); - list_items_4.setVisibility(View.GONE); list_items_5.setVisibility(View.VISIBLE); list_items_5.setAdapter(new List_items_5Adapter(patched_changelogs)); ((BaseAdapter)list_items_5.getAdapter()).notifyDataSetChanged(); CLICKER_1 = 1; CLICKER_2 = 1; CLICKER_3 = 1; - CLICKER_4 = 1; - CLICKER_5 = 0; + CLICKER_4 = 0; } else { - if (CLICKER_5 == 0) { + if (CLICKER_4 == 0) { changelogs_oc.setImageResource(R.drawable.close); list_items_5.setVisibility(View.GONE); - CLICKER_5 = 1; + CLICKER_4 = 1; } } Animation animation; @@ -3223,14 +3158,14 @@ public class MainActivity extends AppCompatActivity { }); AlertDialog = Selected_Patched.create(); AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); + _AlertDialog_Color(); AlertDialog.show(); DELETE = 1; } }); AlertDialog = File_Exist.create(); AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); + _AlertDialog_Color(); AlertDialog.show(); } else { @@ -3684,7 +3619,7 @@ public class MainActivity extends AppCompatActivity { }); AlertDialog = Selected_Patched.create(); AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); + _AlertDialog_Color(); AlertDialog.show(); DELETE = 1; } @@ -4231,14 +4166,14 @@ public class MainActivity extends AppCompatActivity { }); AlertDialog = Selected_Patched.create(); AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); + _AlertDialog_Color(); AlertDialog.show(); DELETE = 1; } }); AlertDialog = File_Exist.create(); AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); + _AlertDialog_Color(); AlertDialog.show(); } else { @@ -4693,7 +4628,7 @@ public class MainActivity extends AppCompatActivity { }); AlertDialog = Selected_Patched.create(); AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); + _AlertDialog_Color(); AlertDialog.show(); DELETE = 1; } @@ -4997,14 +4932,14 @@ public class MainActivity extends AppCompatActivity { }); AlertDialog = Selected_Patched.create(); AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); + _AlertDialog_Color(); AlertDialog.show(); DELETE = 1; } }); AlertDialog = File_Exist.create(); AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); + _AlertDialog_Color(); AlertDialog.show(); } else { @@ -5225,7 +5160,7 @@ public class MainActivity extends AppCompatActivity { }); AlertDialog = Selected_Patched.create(); AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); + _AlertDialog_Color(); AlertDialog.show(); DELETE = 1; } @@ -5239,732 +5174,227 @@ public class MainActivity extends AppCompatActivity { } }); - list_items_4.setOnItemClickListener(new AdapterView.OnItemClickListener() { + box_uninstall.setOnLongClickListener(new View.OnLongClickListener() { + @Override + public boolean onLongClick(View _view) { + com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Uninstall Patched", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); + return true; + } + }); + + box_uninstall.setOnClickListener(new View.OnClickListener() { @Override - public void onItemClick(AdapterView _param1, View _param2, int _param3, long _param4) { - final int _position = _param3; + public void onClick(View _view) { try { - if (FileUtil.isExistFile("/storage/emulated/0/Download/Patched Wave (xManager).apk")) { - final AlertDialog.Builder File_Exist = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); - - String Title = "".concat(existing_patched.getText().toString().concat("")); - String TitleColor = "1DB954"; + final AlertDialog.Builder Uninstall = new AlertDialog.Builder(MainActivity.this, R.style.Other_Dialog); + + String Title = "".concat(uninstall_patched.getText().toString().concat("")); + String TitleColor = "1DB954"; + + Uninstall.setTitle(Html.fromHtml(""+Title+"")); + Uninstall.setPositiveButton(spap.getText().toString(), new DialogInterface.OnClickListener(){ - File_Exist.setTitle(Html.fromHtml(""+Title+"")); - String Message = existing_patched_desc.getText().toString(); - String MessageColor = "FFFFFF"; + @Override + public void onClick(DialogInterface Uninstall, int p) { + AlertDialog.setCancelable(true); + try { + Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.music")); + startActivity(intent); + } catch (Exception e) { + com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Application not found or uninstalled", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); + } + + } + }); + Uninstall.setNegativeButton(cloned.getText().toString(), new DialogInterface.OnClickListener(){ - File_Exist.setMessage(Html.fromHtml(""+Message+"")); - File_Exist.setPositiveButton(install.getText().toString(), new DialogInterface.OnClickListener(){ + @Override + public void onClick(DialogInterface Uninstall, int p) { - @Override - public void onClick(DialogInterface File_Exist, int p) { - AlertDialog.setCancelable(true); - if (FileUtil.isExistFile("/storage/emulated/0/Download/Patched Wave (xManager).apk")) { - _Extension_8(); - } - } - }); - File_Exist.setNegativeButton(delete.getText().toString(), new DialogInterface.OnClickListener(){ + AlertDialog.setCancelable(true); + try { + Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.musix")); + startActivity(intent); + } catch (Exception e) { + com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Application not found or uninstalled", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); + } - @Override - public void onClick(DialogInterface File_Exist, int p) { - - AlertDialog.setCancelable(true); - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Patched File Deleted", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); - if (FileUtil.isExistFile("/storage/emulated/0/Download/Patched Wave (xManager).apk")) { - FileUtil.deleteFile("/storage/emulated/0/Download/Patched Wave (xManager).apk"); - } - else { - - } - } - }); - File_Exist.setNeutralButton(ignore.getText().toString(), new DialogInterface.OnClickListener(){ + } + }); + Uninstall.setNeutralButton(lite.getText().toString(), new DialogInterface.OnClickListener(){ + + @Override + public void onClick(DialogInterface Uninstall, int p) { + AlertDialog.setCancelable(true); + try { + Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.lite")); + startActivity(intent); + } catch (Exception e) { + com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Application not found or uninstalled", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); + } - @Override - public void onClick(DialogInterface File_Exist, int p) { - AlertDialog.setCancelable(true); - final AlertDialog.Builder Selected_Patched = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); - - String Title = "".concat(download_ready_0.concat("")); - String TitleColor = "1DB954"; - - Selected_Patched.setTitle(Html.fromHtml(""+Title+"")); - if (_position < 1) { - if ((_position % 1) == 0) { - String Message = "VERSION: ".concat(wave_patched.get((int)(wave_patched.size() - 1) - _position).get("Title").toString().concat("
PATCHED TYPE: ".concat("WAVE

").concat(download_ready_desc_0))); - String MessageColor = "FFFFFF"; - - Selected_Patched.setMessage(Html.fromHtml(""+Message+"")); - } - } - else { - String Message = "VERSION: ".concat(wave_patched.get((int)(wave_patched.size() - 1) - _position).get("Title").toString().concat("
PATCHED TYPE: ".concat("WAVE

").concat(download_ready_desc_0))); - String MessageColor = "FFFFFF"; - - Selected_Patched.setMessage(Html.fromHtml(""+Message+"")); - } - Selected_Patched.setPositiveButton(download_0, new DialogInterface.OnClickListener(){ - - @Override - public void onClick(DialogInterface Selected_Patched, int p) { - try { - if (android.os.Build.VERSION.SDK_INT >= 34) { - if (DISABLE_REWARD_AD.getString("REWARD_AD", "").equals("ON")) { - AlertDialog.setCancelable(true); - if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) { - _Browser(hidden_download_3.getText().toString()); - _Reminder(); - } - else { - _Browser(hidden_download_2.getText().toString()); - } - _File_Remover(); - } - else { - if (mRewardedAd != null) { - Activity activityContext = MainActivity.this; - mRewardedAd.show(activityContext, new OnUserEarnedRewardListener() { - @Override - public void onUserEarnedReward(@NonNull RewardItem rewardItem) { - AlertDialog.setCancelable(true); - if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) { - _Browser(hidden_download_3.getText().toString()); - _Reminder(); - } - else { - _Browser(hidden_download_2.getText().toString()); - } - _File_Remover(); - int rewardAmount = rewardItem.getAmount(); - String rewardType = rewardItem.getType(); - } - }); - } else { - AlertDialog.setCancelable(true); - if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) { - _Browser(hidden_download_3.getText().toString()); - _Reminder(); - } - else { - _Browser(hidden_download_2.getText().toString()); - } - _File_Remover(); - } - } - } - else { - if (DISABLE_REWARD_AD.getString("REWARD_AD", "").equals("ON")) { - AlertDialog.setCancelable(true); - if (FORCE_INSTALL.getString("FORCE_INSTALL", "").equals("X")) { - if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) { - _Download_Install_Wave(hidden_download_1.getText().toString(), "/storage/emulated/0/Download/"); - } - else { - _Download_Install_Wave(hidden_download_2.getText().toString(), "/storage/emulated/0/Download/"); - } - } - else { - if (FORCE_INSTALL.getString("FORCE_INSTALL", "").equals("Y")) { - if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) { - _Download_Wave(hidden_download_1.getText().toString(), "/storage/emulated/0/Download/"); - } - else { - _Download_Wave(hidden_download_2.getText().toString(), "/storage/emulated/0/Download/"); - } - } - } - _File_Remover(); - } - else { - if (mRewardedAd != null) { - Activity activityContext = MainActivity.this; - mRewardedAd.show(activityContext, new OnUserEarnedRewardListener() { - @Override - public void onUserEarnedReward(@NonNull RewardItem rewardItem) { - AlertDialog.setCancelable(true); - if (FORCE_INSTALL.getString("FORCE_INSTALL", "").equals("X")) { - if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) { - _Download_Install_Wave(hidden_download_1.getText().toString(), "/storage/emulated/0/Download/"); - } - else { - _Download_Install_Wave(hidden_download_2.getText().toString(), "/storage/emulated/0/Download/"); - } - } - else { - if (FORCE_INSTALL.getString("FORCE_INSTALL", "").equals("Y")) { - if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) { - _Download_Wave(hidden_download_1.getText().toString(), "/storage/emulated/0/Download/"); - } - else { - _Download_Wave(hidden_download_2.getText().toString(), "/storage/emulated/0/Download/"); - } - } - } - _File_Remover(); - int rewardAmount = rewardItem.getAmount(); - String rewardType = rewardItem.getType(); - } - }); - } else { - AlertDialog.setCancelable(true); - if (FORCE_INSTALL.getString("FORCE_INSTALL", "").equals("X")) { - if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) { - _Download_Install_Wave(hidden_download_1.getText().toString(), "/storage/emulated/0/Download/"); - } - else { - _Download_Install_Wave(hidden_download_2.getText().toString(), "/storage/emulated/0/Download/"); - } - } - else { - if (FORCE_INSTALL.getString("FORCE_INSTALL", "").equals("Y")) { - if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) { - _Download_Wave(hidden_download_1.getText().toString(), "/storage/emulated/0/Download/"); - } - else { - _Download_Wave(hidden_download_2.getText().toString(), "/storage/emulated/0/Download/"); - } - } - } - _File_Remover(); - } - } - } - } - catch(Exception e) { - } - } - }); - if (android.os.Build.VERSION.SDK_INT >= 34) { - } - else { - Selected_Patched.setNegativeButton(mirror_0, new DialogInterface.OnClickListener(){ - - @Override - public void onClick(DialogInterface Selected_Patched, int p) { - - try { - if (DISABLE_REWARD_AD.getString("REWARD_AD", "").equals("ON")) { - AlertDialog.setCancelable(true); - if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) { - _Browser(hidden_download_3.getText().toString()); - _Reminder(); - } - else { - _Browser(hidden_download_2.getText().toString()); - } - _File_Remover(); - } - else { - if (mRewardedAd != null) { - Activity activityContext = MainActivity.this; - mRewardedAd.show(activityContext, new OnUserEarnedRewardListener() { - @Override - public void onUserEarnedReward(@NonNull RewardItem rewardItem) { - AlertDialog.setCancelable(true); - if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) { - _Browser(hidden_download_3.getText().toString()); - _Reminder(); - } - else { - _Browser(hidden_download_2.getText().toString()); - } - _File_Remover(); - int rewardAmount = rewardItem.getAmount(); - String rewardType = rewardItem.getType(); - } - }); - } else { - AlertDialog.setCancelable(true); - if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) { - _Browser(hidden_download_3.getText().toString()); - _Reminder(); - } - else { - _Browser(hidden_download_2.getText().toString()); - } - _File_Remover(); - } - } - } - catch(Exception e) { - } - } - }); - } - Selected_Patched.setNeutralButton(cancel_0, new DialogInterface.OnClickListener(){ - - @Override - public void onClick(DialogInterface Selected_Patched, int p) { - AlertDialog.setCancelable(true); - } - }); - AlertDialog = Selected_Patched.create(); - AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); - AlertDialog.show(); - DELETE = 1; - } - }); - AlertDialog = File_Exist.create(); - AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); - AlertDialog.show(); - } - else { - final AlertDialog.Builder Selected_Patched = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); + } + }); + AlertDialog = Uninstall.create(); + AlertDialog.setCancelable(true); + _AlertDialog_Color(); + AlertDialog.show(); + _Tap_Animation(box_uninstall); + } catch (Exception e) { + } + + } + }); + + box_settings.setOnLongClickListener(new View.OnLongClickListener() { + @Override + public boolean onLongClick(View _view) { + com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Open Patched's App Settings", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); + return true; + } + }); + + box_settings.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View _view) { + try { + final AlertDialog.Builder Settings = new AlertDialog.Builder(MainActivity.this, R.style.Other_Dialog); + + String Title = "".concat(open_settings.getText().toString().concat("")); + String TitleColor = "1DB954"; + + Settings.setTitle(Html.fromHtml(""+Title+"")); + Settings.setPositiveButton(spap.getText().toString(), new DialogInterface.OnClickListener(){ - String Title = "".concat(download_ready_0.concat("")); - String TitleColor = "1DB954"; + @Override + public void onClick(DialogInterface Settings, int p) { + AlertDialog.setCancelable(true); + Intent intent = new Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS); intent.setData(Uri.parse("package:com.spotify.music")); + startActivity(intent); + } + }); + Settings.setNegativeButton(cloned.getText().toString(), new DialogInterface.OnClickListener(){ - Selected_Patched.setTitle(Html.fromHtml(""+Title+"")); - if (_position < 1) { - if ((_position % 1) == 0) { - String Message = "VERSION: ".concat(wave_patched.get((int)(wave_patched.size() - 1) - _position).get("Title").toString().concat("
PATCHED TYPE: ".concat("WAVE

").concat(download_ready_desc_0))); - String MessageColor = "FFFFFF"; - - Selected_Patched.setMessage(Html.fromHtml(""+Message+"")); - } - } - else { - String Message = "VERSION: ".concat(wave_patched.get((int)(wave_patched.size() - 1) - _position).get("Title").toString().concat("
PATCHED TYPE: ".concat("WAVE

").concat(download_ready_desc_0))); - String MessageColor = "FFFFFF"; - - Selected_Patched.setMessage(Html.fromHtml(""+Message+"")); - } - Selected_Patched.setPositiveButton(download_0, new DialogInterface.OnClickListener(){ + @Override + public void onClick(DialogInterface Settings, int p) { - @Override - public void onClick(DialogInterface Selected_Patched, int p) { - try { - if (android.os.Build.VERSION.SDK_INT >= 34) { - if (DISABLE_REWARD_AD.getString("REWARD_AD", "").equals("ON")) { - AlertDialog.setCancelable(true); - if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) { - _Browser(hidden_download_3.getText().toString()); - _Reminder(); - } - else { - _Browser(hidden_download_2.getText().toString()); - } - _File_Remover(); - } - else { - if (mRewardedAd != null) { - Activity activityContext = MainActivity.this; - mRewardedAd.show(activityContext, new OnUserEarnedRewardListener() { - @Override - public void onUserEarnedReward(@NonNull RewardItem rewardItem) { - AlertDialog.setCancelable(true); - if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) { - _Browser(hidden_download_3.getText().toString()); - _Reminder(); - } - else { - _Browser(hidden_download_2.getText().toString()); - } - _File_Remover(); - int rewardAmount = rewardItem.getAmount(); - String rewardType = rewardItem.getType(); - } - }); - } else { - AlertDialog.setCancelable(true); - if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) { - _Browser(hidden_download_3.getText().toString()); - _Reminder(); - } - else { - _Browser(hidden_download_2.getText().toString()); - } - _File_Remover(); - } - } - } - else { - if (DISABLE_REWARD_AD.getString("REWARD_AD", "").equals("ON")) { - AlertDialog.setCancelable(true); - if (FORCE_INSTALL.getString("FORCE_INSTALL", "").equals("X")) { - if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) { - _Download_Install_Wave(hidden_download_1.getText().toString(), "/storage/emulated/0/Download/"); - } - else { - _Download_Install_Wave(hidden_download_2.getText().toString(), "/storage/emulated/0/Download/"); - } - } - else { - if (FORCE_INSTALL.getString("FORCE_INSTALL", "").equals("Y")) { - if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) { - _Download_Wave(hidden_download_1.getText().toString(), "/storage/emulated/0/Download/"); - } - else { - _Download_Wave(hidden_download_2.getText().toString(), "/storage/emulated/0/Download/"); - } - } - } - _File_Remover(); - } - else { - if (mRewardedAd != null) { - Activity activityContext = MainActivity.this; - mRewardedAd.show(activityContext, new OnUserEarnedRewardListener() { - @Override - public void onUserEarnedReward(@NonNull RewardItem rewardItem) { - AlertDialog.setCancelable(true); - if (FORCE_INSTALL.getString("FORCE_INSTALL", "").equals("X")) { - if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) { - _Download_Install_Wave(hidden_download_1.getText().toString(), "/storage/emulated/0/Download/"); - } - else { - _Download_Install_Wave(hidden_download_2.getText().toString(), "/storage/emulated/0/Download/"); - } - } - else { - if (FORCE_INSTALL.getString("FORCE_INSTALL", "").equals("Y")) { - if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) { - _Download_Wave(hidden_download_1.getText().toString(), "/storage/emulated/0/Download/"); - } - else { - _Download_Wave(hidden_download_2.getText().toString(), "/storage/emulated/0/Download/"); - } - } - } - _File_Remover(); - int rewardAmount = rewardItem.getAmount(); - String rewardType = rewardItem.getType(); - } - }); - } else { - AlertDialog.setCancelable(true); - if (FORCE_INSTALL.getString("FORCE_INSTALL", "").equals("X")) { - if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) { - _Download_Install_Wave(hidden_download_1.getText().toString(), "/storage/emulated/0/Download/"); - } - else { - _Download_Install_Wave(hidden_download_2.getText().toString(), "/storage/emulated/0/Download/"); - } - } - else { - if (FORCE_INSTALL.getString("FORCE_INSTALL", "").equals("Y")) { - if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) { - _Download_Wave(hidden_download_1.getText().toString(), "/storage/emulated/0/Download/"); - } - else { - _Download_Wave(hidden_download_2.getText().toString(), "/storage/emulated/0/Download/"); - } - } - } - _File_Remover(); - } - } + AlertDialog.setCancelable(true); + Intent intent = new Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS); intent.setData(Uri.parse("package:com.spotify.musix")); + startActivity(intent); + } + }); + Settings.setNeutralButton(lite.getText().toString(), new DialogInterface.OnClickListener(){ + + @Override + public void onClick(DialogInterface Settings, int p) { + AlertDialog.setCancelable(true); + Intent intent = new Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS); intent.setData(Uri.parse("package:com.spotify.lite")); + startActivity(intent); + } + }); + AlertDialog = Settings.create(); + AlertDialog.setCancelable(true); + _AlertDialog_Color(); + AlertDialog.show(); + _Tap_Animation(box_settings); + } + catch(Exception e) { + SketchwareUtil.CustomToast(getApplicationContext(), "Application not installed", 0xFF000000, 14, 0xFFE0E0E0, 30, SketchwareUtil.BOTTOM); + } + } + }); + + box_cache.setOnLongClickListener(new View.OnLongClickListener() { + @Override + public boolean onLongClick(View _view) { + com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Clear Offline Cached Datas", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); + return true; + } + }); + + box_cache.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View _view) { + try { + if (CHECK == 0) { + CHECK = 1; + Timer = new TimerTask() { + @Override + public void run() { + runOnUiThread(new Runnable() { + @Override + public void run() { + CHECK = 0; } + }); + } + }; + _timer.schedule(Timer, (int)(2000)); + if (Build.VERSION.SDK_INT <= 30) { + if (FileUtil.isExistFile("/storage/emulated/0/Android/data/com.spotify.music/") || (FileUtil.isExistFile("/storage/emulated/0/Android/data/com.spotify.musix/") || FileUtil.isExistFile("/storage/emulated/0/Android/data/com.spotify.lite/"))) { + FileUtil.deleteFile("/storage/emulated/0/Android/data/com.spotify.music/"); + FileUtil.deleteFile("/storage/emulated/0/Android/data/com.spotify.musix/"); + FileUtil.deleteFile("/storage/emulated/0/Android/data/com.spotify.lite/"); + com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Successfully Deleted", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); } - catch(Exception e) { + else { + com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Directory Files Are Empty", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); + } + } else { + if (Build.VERSION.SDK_INT >= 31) { + com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "This feature does not support Android 12 and above", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); } - } - }); - if (android.os.Build.VERSION.SDK_INT >= 34) { - } - else { - Selected_Patched.setNegativeButton(mirror_0, new DialogInterface.OnClickListener(){ - - @Override - public void onClick(DialogInterface Selected_Patched, int p) { - - try { - if (DISABLE_REWARD_AD.getString("REWARD_AD", "").equals("ON")) { - AlertDialog.setCancelable(true); - if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) { - _Browser(hidden_download_3.getText().toString()); - _Reminder(); - } - else { - _Browser(hidden_download_2.getText().toString()); - } - _File_Remover(); - } - else { - if (mRewardedAd != null) { - Activity activityContext = MainActivity.this; - mRewardedAd.show(activityContext, new OnUserEarnedRewardListener() { - @Override - public void onUserEarnedReward(@NonNull RewardItem rewardItem) { - AlertDialog.setCancelable(true); - if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) { - _Browser(hidden_download_3.getText().toString()); - _Reminder(); - } - else { - _Browser(hidden_download_2.getText().toString()); - } - _File_Remover(); - int rewardAmount = rewardItem.getAmount(); - String rewardType = rewardItem.getType(); - } - }); - } else { - AlertDialog.setCancelable(true); - if (0 == SketchwareUtil.getRandom((int)(0), (int)(1))) { - _Browser(hidden_download_3.getText().toString()); - _Reminder(); - } - else { - _Browser(hidden_download_2.getText().toString()); - } - _File_Remover(); - } - } - } - catch(Exception e) { - } - } - }); } - Selected_Patched.setNeutralButton(cancel_0, new DialogInterface.OnClickListener(){ - - @Override - public void onClick(DialogInterface Selected_Patched, int p) { - AlertDialog.setCancelable(true); - } - }); - AlertDialog = Selected_Patched.create(); - AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); - AlertDialog.show(); - DELETE = 1; + } - hidden_patched.setText(wave_patched.get((int)(wave_patched.size() - 1) - _position).get("Title").toString()); - hidden_download_1.setText(wave_patched.get((int)(wave_patched.size() - 1) - _position).get("Link_1").toString()); - hidden_download_2.setText(wave_patched.get((int)(wave_patched.size() - 1) - _position).get("Link_2").toString()); - hidden_download_3.setText(wave_patched.get((int)(wave_patched.size() - 1) - _position).get("Mirror").toString()); + _Tap_Animation(box_cache); } catch(Exception e) { } } }); - box_uninstall.setOnLongClickListener(new View.OnLongClickListener() { + box_open.setOnLongClickListener(new View.OnLongClickListener() { @Override public boolean onLongClick(View _view) { - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Uninstall Patched", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); + com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Launch Patched App", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); return true; } }); - box_uninstall.setOnClickListener(new View.OnClickListener() { + box_open.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View _view) { try { - final AlertDialog.Builder Uninstall = new AlertDialog.Builder(MainActivity.this, R.style.Other_Dialog); + final AlertDialog.Builder Open = new AlertDialog.Builder(MainActivity.this, R.style.Other_Dialog); - String Title = "".concat(uninstall_patched.getText().toString().concat("")); + String Title = "".concat(open_patched.getText().toString().concat("")); String TitleColor = "1DB954"; - Uninstall.setTitle(Html.fromHtml(""+Title+"")); - Uninstall.setPositiveButton(spap.getText().toString(), new DialogInterface.OnClickListener(){ + Open.setTitle(Html.fromHtml(""+Title+"")); + Open.setPositiveButton(spap.getText().toString(), new DialogInterface.OnClickListener(){ @Override - public void onClick(DialogInterface Uninstall, int p) { + public void onClick(DialogInterface Open, int p) { AlertDialog.setCancelable(true); - try { - Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.music")); - startActivity(intent); - } catch (Exception e) { - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Application not found or uninstalled", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); - } + String packageName = "com.spotify.music"; + Intent intent = getPackageManager().getLaunchIntentForPackage(packageName); + if(intent == null) { + + try { + intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + packageName)); + } catch (Exception e) { + SketchwareUtil.CustomToast(getApplicationContext(), "Spotify not installed", 0xFF000000, 14, 0xFFE0E0E0, 30, SketchwareUtil.BOTTOM); + } + } + startActivity(intent); } }); - Uninstall.setNegativeButton(cloned.getText().toString(), new DialogInterface.OnClickListener(){ + Open.setNegativeButton(cloned.getText().toString(), new DialogInterface.OnClickListener(){ @Override - public void onClick(DialogInterface Uninstall, int p) { - - AlertDialog.setCancelable(true); - try { - Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.musix")); - startActivity(intent); - } catch (Exception e) { - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Application not found or uninstalled", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); - } - - } - }); - Uninstall.setNeutralButton(lite.getText().toString(), new DialogInterface.OnClickListener(){ - - @Override - public void onClick(DialogInterface Uninstall, int p) { - AlertDialog.setCancelable(true); - try { - Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.lite")); - startActivity(intent); - } catch (Exception e) { - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Application not found or uninstalled", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); - } - - } - }); - AlertDialog = Uninstall.create(); - AlertDialog.setCancelable(true); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); - AlertDialog.show(); - _Tap_Animation(box_uninstall); - } catch (Exception e) { - } - - } - }); - - box_settings.setOnLongClickListener(new View.OnLongClickListener() { - @Override - public boolean onLongClick(View _view) { - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Open Patched's App Settings", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); - return true; - } - }); - - box_settings.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View _view) { - try { - final AlertDialog.Builder Settings = new AlertDialog.Builder(MainActivity.this, R.style.Other_Dialog); - - String Title = "".concat(open_settings.getText().toString().concat("")); - String TitleColor = "1DB954"; - - Settings.setTitle(Html.fromHtml(""+Title+"")); - Settings.setPositiveButton(spap.getText().toString(), new DialogInterface.OnClickListener(){ - - @Override - public void onClick(DialogInterface Settings, int p) { - AlertDialog.setCancelable(true); - Intent intent = new Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS); intent.setData(Uri.parse("package:com.spotify.music")); - startActivity(intent); - } - }); - Settings.setNegativeButton(cloned.getText().toString(), new DialogInterface.OnClickListener(){ - - @Override - public void onClick(DialogInterface Settings, int p) { - - AlertDialog.setCancelable(true); - Intent intent = new Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS); intent.setData(Uri.parse("package:com.spotify.musix")); - startActivity(intent); - } - }); - Settings.setNeutralButton(lite.getText().toString(), new DialogInterface.OnClickListener(){ - - @Override - public void onClick(DialogInterface Settings, int p) { - AlertDialog.setCancelable(true); - Intent intent = new Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS); intent.setData(Uri.parse("package:com.spotify.lite")); - startActivity(intent); - } - }); - AlertDialog = Settings.create(); - AlertDialog.setCancelable(true); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); - AlertDialog.show(); - _Tap_Animation(box_settings); - } - catch(Exception e) { - SketchwareUtil.CustomToast(getApplicationContext(), "Application not installed", 0xFF000000, 14, 0xFFE0E0E0, 30, SketchwareUtil.BOTTOM); - } - } - }); - - box_cache.setOnLongClickListener(new View.OnLongClickListener() { - @Override - public boolean onLongClick(View _view) { - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Clear Offline Cached Datas", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); - return true; - } - }); - - box_cache.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View _view) { - try { - if (CHECK == 0) { - CHECK = 1; - Timer = new TimerTask() { - @Override - public void run() { - runOnUiThread(new Runnable() { - @Override - public void run() { - CHECK = 0; - } - }); - } - }; - _timer.schedule(Timer, (int)(2000)); - if (Build.VERSION.SDK_INT <= 30) { - if (FileUtil.isExistFile("/storage/emulated/0/Android/data/com.spotify.music/") || (FileUtil.isExistFile("/storage/emulated/0/Android/data/com.spotify.musix/") || FileUtil.isExistFile("/storage/emulated/0/Android/data/com.spotify.lite/"))) { - FileUtil.deleteFile("/storage/emulated/0/Android/data/com.spotify.music/"); - FileUtil.deleteFile("/storage/emulated/0/Android/data/com.spotify.musix/"); - FileUtil.deleteFile("/storage/emulated/0/Android/data/com.spotify.lite/"); - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Successfully Deleted", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); - } - else { - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Directory Files Are Empty", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); - } - } else { - if (Build.VERSION.SDK_INT >= 31) { - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "This feature does not support Android 12 and above", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); - } - } - - } - _Tap_Animation(box_cache); - } - catch(Exception e) { - } - } - }); - - box_open.setOnLongClickListener(new View.OnLongClickListener() { - @Override - public boolean onLongClick(View _view) { - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Launch Patched App", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); - return true; - } - }); - - box_open.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View _view) { - try { - final AlertDialog.Builder Open = new AlertDialog.Builder(MainActivity.this, R.style.Other_Dialog); - - String Title = "".concat(open_patched.getText().toString().concat("")); - String TitleColor = "1DB954"; - - Open.setTitle(Html.fromHtml(""+Title+"")); - Open.setPositiveButton(spap.getText().toString(), new DialogInterface.OnClickListener(){ - - @Override - public void onClick(DialogInterface Open, int p) { - AlertDialog.setCancelable(true); - String packageName = "com.spotify.music"; - - Intent intent = getPackageManager().getLaunchIntentForPackage(packageName); - if(intent == null) { - - try { - intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + packageName)); - } catch (Exception e) { - SketchwareUtil.CustomToast(getApplicationContext(), "Spotify not installed", 0xFF000000, 14, 0xFFE0E0E0, 30, SketchwareUtil.BOTTOM); - } - } - startActivity(intent); - } - }); - Open.setNegativeButton(cloned.getText().toString(), new DialogInterface.OnClickListener(){ - - @Override - public void onClick(DialogInterface Open, int p) { + public void onClick(DialogInterface Open, int p) { AlertDialog.setCancelable(true); String packageName = "com.spotify.musix"; @@ -6002,7 +5432,7 @@ public class MainActivity extends AppCompatActivity { }); AlertDialog = Open.create(); AlertDialog.setCancelable(true); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); + _AlertDialog_Color(); AlertDialog.show(); _Tap_Animation(box_open); } @@ -6071,7 +5501,7 @@ public class MainActivity extends AppCompatActivity { }); AlertDialog = Donation.create(); AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); + _AlertDialog_Color(); AlertDialog.show(); _Tap_Animation(box_donate); } @@ -6190,7 +5620,6 @@ public class MainActivity extends AppCompatActivity { _Reinitialize(); _Animation_0(); _Gate_Keeper(); - _Informations(); _Theme_Pack(); _Language_Pack(); _Dark_Navigation(); @@ -6234,6 +5663,7 @@ public class MainActivity extends AppCompatActivity { } } + public void _Informations() { Timer = new TimerTask() { @Override @@ -6371,9 +5801,6 @@ public class MainActivity extends AppCompatActivity { } } } - sub_installed.setText("N/A"); - sub_installed_c.setText("N/A"); - sub_installed_l.setText("N/A"); String uri = "com.spotify.music"; android.content.pm.PackageManager pm = getPackageManager(); @@ -6468,8 +5895,43 @@ public class MainActivity extends AppCompatActivity { final long downloadId = manager.enqueue(request); final ProgressDialog prog = new ProgressDialog(MainActivity.this, R.style.Progress_Dialog); final ProgressDialog check = new ProgressDialog(MainActivity.this, R.style.Progress_Dialog); - prog.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); - check.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); + if (THEME.getString("THEME", "").equals("14")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_green); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_green); + } else { + if (THEME.getString("THEME", "").equals("15")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_blue); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_blue); + } else { + if (THEME.getString("THEME", "").equals("16")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_red); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_red); + } else { + if (THEME.getString("THEME", "").equals("17")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_orange); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_orange);; + } else { + if (THEME.getString("THEME", "").equals("18")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_pink); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_pink); + } else { + if (THEME.getString("THEME", "").equals("19")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_purple); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_purple); + } else { + if (THEME.getString("THEME", "").equals("20")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_cyan); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_cyan); + } else { + prog.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); + check.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); + } + } + } + } + } + } + } Thread progress = new Thread() { @Override public void run() { @@ -6719,6 +6181,7 @@ public class MainActivity extends AppCompatActivity { main_scroll_about.setBackground(new GradientDrawable(GradientDrawable.Orientation.BR_TL, new int[] {0xFF000000,0xFF000000})); main_scroll_settings.setBackground(new GradientDrawable(GradientDrawable.Orientation.BR_TL, new int[] {0xFF000000,0xFF000000})); select_theme.setSelection((int)(0)); + _Original_Theme(); } else { if (THEME.getString("THEME", "").equals("1")) { @@ -6726,6 +6189,7 @@ public class MainActivity extends AppCompatActivity { main_scroll_about.setBackground(new GradientDrawable(GradientDrawable.Orientation.BR_TL, new int[] {0xFF000000,0xFF1DB954})); main_scroll_settings.setBackground(new GradientDrawable(GradientDrawable.Orientation.BR_TL, new int[] {0xFF000000,0xFF1DB954})); select_theme.setSelection((int)(1)); + _Original_Theme(); } else { if (THEME.getString("THEME", "").equals("2")) { @@ -6733,6 +6197,7 @@ public class MainActivity extends AppCompatActivity { main_scroll_about.setBackground(new GradientDrawable(GradientDrawable.Orientation.BR_TL, new int[] {0xFF000000,0xFFAA00FF})); main_scroll_settings.setBackground(new GradientDrawable(GradientDrawable.Orientation.BR_TL, new int[] {0xFF000000,0xFFAA00FF})); select_theme.setSelection((int)(2)); + _Original_Theme(); } else { if (THEME.getString("THEME", "").equals("3")) { @@ -6740,6 +6205,7 @@ public class MainActivity extends AppCompatActivity { main_scroll_about.setBackground(new GradientDrawable(GradientDrawable.Orientation.BR_TL, new int[] {0xFF000000,0xFFD50000})); main_scroll_settings.setBackground(new GradientDrawable(GradientDrawable.Orientation.BR_TL, new int[] {0xFF000000,0xFFD50000})); select_theme.setSelection((int)(3)); + _Original_Theme(); } else { if (THEME.getString("THEME", "").equals("4")) { @@ -6747,6 +6213,7 @@ public class MainActivity extends AppCompatActivity { main_scroll_about.setBackground(new GradientDrawable(GradientDrawable.Orientation.BR_TL, new int[] {0xFF000000,0xFF2962FF})); main_scroll_settings.setBackground(new GradientDrawable(GradientDrawable.Orientation.BR_TL, new int[] {0xFF000000,0xFF2962FF})); select_theme.setSelection((int)(4)); + _Original_Theme(); } else { if (THEME.getString("THEME", "").equals("5")) { @@ -6754,6 +6221,7 @@ public class MainActivity extends AppCompatActivity { main_scroll_about.setBackground(new GradientDrawable(GradientDrawable.Orientation.BR_TL, new int[] {0xFF000000,0xFFFF6D00})); main_scroll_settings.setBackground(new GradientDrawable(GradientDrawable.Orientation.BR_TL, new int[] {0xFF000000,0xFFFF6D00})); select_theme.setSelection((int)(5)); + _Original_Theme(); } else { if (THEME.getString("THEME", "").equals("6")) { @@ -6761,6 +6229,7 @@ public class MainActivity extends AppCompatActivity { main_scroll_about.setBackground(new GradientDrawable(GradientDrawable.Orientation.BR_TL, new int[] {0xFF000000,0xFFFFD600})); main_scroll_settings.setBackground(new GradientDrawable(GradientDrawable.Orientation.BR_TL, new int[] {0xFF000000,0xFFFFD600})); select_theme.setSelection((int)(6)); + _Original_Theme(); } else { if (THEME.getString("THEME", "").equals("7")) { @@ -6768,6 +6237,7 @@ public class MainActivity extends AppCompatActivity { main_scroll_about.setBackground(new GradientDrawable(GradientDrawable.Orientation.BR_TL, new int[] {0xFF000000,0xFF616161})); main_scroll_settings.setBackground(new GradientDrawable(GradientDrawable.Orientation.BR_TL, new int[] {0xFF000000,0xFF616161})); select_theme.setSelection((int)(7)); + _Original_Theme(); } else { if (THEME.getString("THEME", "").equals("8")) { @@ -6775,6 +6245,7 @@ public class MainActivity extends AppCompatActivity { main_scroll_about.setBackground(new GradientDrawable(GradientDrawable.Orientation.BR_TL, new int[] {0xFF000000,0xFF607D8B})); main_scroll_settings.setBackground(new GradientDrawable(GradientDrawable.Orientation.BR_TL, new int[] {0xFF000000,0xFF607D8B})); select_theme.setSelection((int)(8)); + _Original_Theme(); } else { if (THEME.getString("THEME", "").equals("9")) { @@ -6782,6 +6253,7 @@ public class MainActivity extends AppCompatActivity { main_scroll_about.setBackground(new GradientDrawable(GradientDrawable.Orientation.BR_TL, new int[] {0xFF000000,0xFFE91E63})); main_scroll_settings.setBackground(new GradientDrawable(GradientDrawable.Orientation.BR_TL, new int[] {0xFF000000,0xFFE91E63})); select_theme.setSelection((int)(9)); + _Original_Theme(); } else { if (THEME.getString("THEME", "").equals("10")) { @@ -6789,6 +6261,7 @@ public class MainActivity extends AppCompatActivity { main_scroll_about.setBackground(new GradientDrawable(GradientDrawable.Orientation.BR_TL, new int[] {0xFF000000,0xFF00BCD4})); main_scroll_settings.setBackground(new GradientDrawable(GradientDrawable.Orientation.BR_TL, new int[] {0xFF000000,0xFF00BCD4})); select_theme.setSelection((int)(10)); + _Original_Theme(); } else { if (THEME.getString("THEME", "").equals("11")) { @@ -6796,6 +6269,7 @@ public class MainActivity extends AppCompatActivity { main_scroll_about.setBackground(new GradientDrawable(GradientDrawable.Orientation.BR_TL, new int[] {0xFF000000,0xFFFFFFFF})); main_scroll_settings.setBackground(new GradientDrawable(GradientDrawable.Orientation.BR_TL, new int[] {0xFF000000,0xFFFFFFFF})); select_theme.setSelection((int)(11)); + _Original_Theme(); } else { if (THEME.getString("THEME", "").equals("12")) { @@ -6803,6 +6277,7 @@ public class MainActivity extends AppCompatActivity { main_scroll_about.setBackground(new GradientDrawable(GradientDrawable.Orientation.BR_TL, new int[] {0xFF000000,0xFF795548})); main_scroll_settings.setBackground(new GradientDrawable(GradientDrawable.Orientation.BR_TL, new int[] {0xFF000000,0xFF795548})); select_theme.setSelection((int)(12)); + _Original_Theme(); } else { if (THEME.getString("THEME", "").equals("13")) { @@ -6810,6 +6285,959 @@ public class MainActivity extends AppCompatActivity { main_scroll_about.setBackground(new GradientDrawable(GradientDrawable.Orientation.BR_TL, new int[] {0xFF000000,0xFF3F51B5})); main_scroll_settings.setBackground(new GradientDrawable(GradientDrawable.Orientation.BR_TL, new int[] {0xFF000000,0xFF3F51B5})); select_theme.setSelection((int)(13)); + _Original_Theme(); + } + else { + if (THEME.getString("THEME", "").equals("14")) { + main_refresh_layout.setBackgroundColor(0xFFF2F3F4); + main_scroll_about.setBackgroundColor(0xFFF2F3F4); + main_scroll_settings.setBackgroundColor(0xFFF2F3F4); + box_header.setBackgroundColor(0xFF1B5E20); + box_settings_icon_close.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + box_icon_close.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + box_sub_header.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + main_box_1.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + main_box_2.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + main_box_3.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + main_box_5.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + main_box_6.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + main_box_8.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + main_box_9.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + main_box_10.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + main_box_11.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + main_box_14.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + main_box_16.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + main_box_17.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + main_box_18.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + main_box_20.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + main_box_21.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + box_support.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + box_donate.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + box_about.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + box_source.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + box_website.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + box_discord.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + box_reddit.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + box_faq.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + box_about_header.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + box_about_1.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + box_about_2.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + box_about_3.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + box_about_4.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + box_about_5.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + box_about_6.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + box_about_7.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + box_about_sub.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + box_reboot.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + box_reset_preferences.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + box_separator_1.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFF2F3F4)); + box_separator_2.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFF2F3F4)); + box_separator_3.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFF2F3F4)); + box_separator_4.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFF2F3F4)); + box_separator_8.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + box_separator_9.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1B5E20)); + + title_header.setTextColor(0xFFF2F3F4); + cloned_version.setTextColor(0xFFF2F3F4); + experiment_version.setTextColor(0xFFF2F3F4); + list_auto_refresh.setTextColor(0xFFF2F3F4); + force_auto_install.setTextColor(0xFFF2F3F4); + disable_reward_ad.setTextColor(0xFFF2F3F4); + disable_notification.setTextColor(0xFFF2F3F4); + hide_stock_patched.setTextColor(0xFFF2F3F4); + hide_amoled_patched.setTextColor(0xFFF2F3F4); + hide_lite_patched.setTextColor(0xFFF2F3F4); + theme.setTextColor(0xFFF2F3F4); + language.setTextColor(0xFFF2F3F4); + apk_location.setTextColor(0xFFF2F3F4); + clear_directory_folders.setTextColor(0xFFF2F3F4); + reboot.setTextColor(0xFFFFFFFF); + reset_preferences.setTextColor(0xFFFFFFFF); + xmanager_dev.setTextColor(0xFFF2F3F4); + patched_devs.setTextColor(0xFFF2F3F4); + support_team.setTextColor(0xFFF2F3F4); + manager_testers.setTextColor(0xFFF2F3F4); + manager_hosting.setTextColor(0xFFF2F3F4); + mobilism_team.setTextColor(0xFFF2F3F4); + forum_team.setTextColor(0xFFF2F3F4); + manager_lang_1.setTextColor(0xFFF2F3F4); + manager_lang_2.setTextColor(0xFFF2F3F4); + manager_lang_3.setTextColor(0xFFF2F3F4); + manager_lang_4.setTextColor(0xFFF2F3F4); + manager_lang_5.setTextColor(0xFFF2F3F4); + manager_lang_6.setTextColor(0xFFF2F3F4); + manager_lang_7.setTextColor(0xFFF2F3F4); + manager_lang_8.setTextColor(0xFFF2F3F4); + manager_lang_9.setTextColor(0xFFF2F3F4); + manager_lang_10.setTextColor(0xFFF2F3F4); + manager_lang_11.setTextColor(0xFFF2F3F4); + manager_lang_12.setTextColor(0xFFF2F3F4); + manager_lang_13.setTextColor(0xFFF2F3F4); + manager_lang_14.setTextColor(0xFFF2F3F4); + manager_lang_15.setTextColor(0xFFF2F3F4); + manager_lang_16.setTextColor(0xFFF2F3F4); + manager_lang_17.setTextColor(0xFFF2F3F4); + manager_lang_18.setTextColor(0xFFF2F3F4); + manager_lang_19.setTextColor(0xFFF2F3F4); + manager_lang_20.setTextColor(0xFFF2F3F4); + manager_lang_21.setTextColor(0xFFF2F3F4); + manager_lang_22.setTextColor(0xFFF2F3F4); + manager_lang_23.setTextColor(0xFFF2F3F4); + manager_lang_24.setTextColor(0xFFF2F3F4); + manager_lang_25.setTextColor(0xFFF2F3F4); + manager_lang_26.setTextColor(0xFFF2F3F4); + manager_lang_27.setTextColor(0xFFF2F3F4); + manager_lang_28.setTextColor(0xFFF2F3F4); + manager_lang_29.setTextColor(0xFFF2F3F4); + manager_lang_30.setTextColor(0xFFF2F3F4); + manager_lang_31.setTextColor(0xFFF2F3F4); + manager_lang_32.setTextColor(0xFFF2F3F4); + manager_lang_33.setTextColor(0xFFF2F3F4); + manager_lang_34.setTextColor(0xFFF2F3F4); + manager_lang_35.setTextColor(0xFFF2F3F4); + manager_lang_36.setTextColor(0xFFF2F3F4); + manager_lang_37.setTextColor(0xFFF2F3F4); + manager_lang_38.setTextColor(0xFFF2F3F4); + manager_lang_39.setTextColor(0xFFF2F3F4); + manager_lang_40.setTextColor(0xFFF2F3F4); + manager_lang_41.setTextColor(0xFFF2F3F4); + manager_lang_42.setTextColor(0xFFF2F3F4); + manager_lang_43.setTextColor(0xFFF2F3F4); + manager_lang_44.setTextColor(0xFFF2F3F4); + manager_donors.setTextColor(0xFFF2F3F4); + contributors.setTextColor(0xFF1B5E20); + title_1.setTextColor(0xFFF2F3F4); + title_2.setTextColor(0xFFF2F3F4); + title_3.setTextColor(0xFFF2F3F4); + title_6.setTextColor(0xFF1B5E20); + sub_text_installed.setTextColor(0xFFF2F3F4); + title_sub.setTextColor(0xFFF2F3F4); + support.setTextColor(0xFFF2F3F4); + reddit.setTextColor(0xFFF2F3F4); + donate.setTextColor(0xFFF2F3F4); + about.setTextColor(0xFFF2F3F4); + discord.setTextColor(0xFFF2F3F4); + source.setTextColor(0xFFF2F3F4); + website.setTextColor(0xFFF2F3F4); + faq.setTextColor(0xFFF2F3F4); + select_theme.setSelection((int)(14)); + } + else { + if (THEME.getString("THEME", "").equals("15")) { + main_refresh_layout.setBackgroundColor(0xFFF2F3F4); + main_scroll_about.setBackgroundColor(0xFFF2F3F4); + main_scroll_settings.setBackgroundColor(0xFFF2F3F4); + box_header.setBackgroundColor(0xFF00008B); + box_settings_icon_close.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + box_icon_close.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + box_sub_header.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + main_box_1.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + main_box_2.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + main_box_3.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + main_box_5.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + main_box_6.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + main_box_8.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + main_box_9.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + main_box_10.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + main_box_11.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + main_box_14.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + main_box_16.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + main_box_17.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + main_box_18.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + main_box_20.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + main_box_21.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + box_support.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + box_donate.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + box_about.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + box_source.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + box_website.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + box_discord.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + box_reddit.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + box_faq.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + box_about_header.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + box_about_1.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + box_about_2.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + box_about_3.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + box_about_4.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + box_about_5.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + box_about_6.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + box_about_7.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + box_about_sub.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + box_reboot.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + box_reset_preferences.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + box_separator_1.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFF2F3F4)); + box_separator_2.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFF2F3F4)); + box_separator_3.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFF2F3F4)); + box_separator_4.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFF2F3F4)); + box_separator_8.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + box_separator_9.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF00008B)); + + title_header.setTextColor(0xFFF2F3F4); + cloned_version.setTextColor(0xFFF2F3F4); + experiment_version.setTextColor(0xFFF2F3F4); + list_auto_refresh.setTextColor(0xFFF2F3F4); + force_auto_install.setTextColor(0xFFF2F3F4); + disable_reward_ad.setTextColor(0xFFF2F3F4); + disable_notification.setTextColor(0xFFF2F3F4); + hide_stock_patched.setTextColor(0xFFF2F3F4); + hide_amoled_patched.setTextColor(0xFFF2F3F4); + hide_lite_patched.setTextColor(0xFFF2F3F4); + theme.setTextColor(0xFFF2F3F4); + language.setTextColor(0xFFF2F3F4); + apk_location.setTextColor(0xFFF2F3F4); + clear_directory_folders.setTextColor(0xFFF2F3F4); + reboot.setTextColor(0xFFFFFFFF); + reset_preferences.setTextColor(0xFFFFFFFF); + xmanager_dev.setTextColor(0xFFF2F3F4); + patched_devs.setTextColor(0xFFF2F3F4); + support_team.setTextColor(0xFFF2F3F4); + manager_testers.setTextColor(0xFFF2F3F4); + manager_hosting.setTextColor(0xFFF2F3F4); + mobilism_team.setTextColor(0xFFF2F3F4); + forum_team.setTextColor(0xFFF2F3F4); + manager_lang_1.setTextColor(0xFFF2F3F4); + manager_lang_2.setTextColor(0xFFF2F3F4); + manager_lang_3.setTextColor(0xFFF2F3F4); + manager_lang_4.setTextColor(0xFFF2F3F4); + manager_lang_5.setTextColor(0xFFF2F3F4); + manager_lang_6.setTextColor(0xFFF2F3F4); + manager_lang_7.setTextColor(0xFFF2F3F4); + manager_lang_8.setTextColor(0xFFF2F3F4); + manager_lang_9.setTextColor(0xFFF2F3F4); + manager_lang_10.setTextColor(0xFFF2F3F4); + manager_lang_11.setTextColor(0xFFF2F3F4); + manager_lang_12.setTextColor(0xFFF2F3F4); + manager_lang_13.setTextColor(0xFFF2F3F4); + manager_lang_14.setTextColor(0xFFF2F3F4); + manager_lang_15.setTextColor(0xFFF2F3F4); + manager_lang_16.setTextColor(0xFFF2F3F4); + manager_lang_17.setTextColor(0xFFF2F3F4); + manager_lang_18.setTextColor(0xFFF2F3F4); + manager_lang_19.setTextColor(0xFFF2F3F4); + manager_lang_20.setTextColor(0xFFF2F3F4); + manager_lang_21.setTextColor(0xFFF2F3F4); + manager_lang_22.setTextColor(0xFFF2F3F4); + manager_lang_23.setTextColor(0xFFF2F3F4); + manager_lang_24.setTextColor(0xFFF2F3F4); + manager_lang_25.setTextColor(0xFFF2F3F4); + manager_lang_26.setTextColor(0xFFF2F3F4); + manager_lang_27.setTextColor(0xFFF2F3F4); + manager_lang_28.setTextColor(0xFFF2F3F4); + manager_lang_29.setTextColor(0xFFF2F3F4); + manager_lang_30.setTextColor(0xFFF2F3F4); + manager_lang_31.setTextColor(0xFFF2F3F4); + manager_lang_32.setTextColor(0xFFF2F3F4); + manager_lang_33.setTextColor(0xFFF2F3F4); + manager_lang_34.setTextColor(0xFFF2F3F4); + manager_lang_35.setTextColor(0xFFF2F3F4); + manager_lang_36.setTextColor(0xFFF2F3F4); + manager_lang_37.setTextColor(0xFFF2F3F4); + manager_lang_38.setTextColor(0xFFF2F3F4); + manager_lang_39.setTextColor(0xFFF2F3F4); + manager_lang_40.setTextColor(0xFFF2F3F4); + manager_lang_41.setTextColor(0xFFF2F3F4); + manager_lang_42.setTextColor(0xFFF2F3F4); + manager_lang_43.setTextColor(0xFFF2F3F4); + manager_lang_44.setTextColor(0xFFF2F3F4); + manager_donors.setTextColor(0xFFF2F3F4); + contributors.setTextColor(0xFF00008B); + title_1.setTextColor(0xFFF2F3F4); + title_2.setTextColor(0xFFF2F3F4); + title_3.setTextColor(0xFFF2F3F4); + title_6.setTextColor(0xFF00008B); + sub_text_installed.setTextColor(0xFFF2F3F4); + title_sub.setTextColor(0xFFF2F3F4); + support.setTextColor(0xFFF2F3F4); + reddit.setTextColor(0xFFF2F3F4); + donate.setTextColor(0xFFF2F3F4); + about.setTextColor(0xFFF2F3F4); + discord.setTextColor(0xFFF2F3F4); + source.setTextColor(0xFFF2F3F4); + website.setTextColor(0xFFF2F3F4); + faq.setTextColor(0xFFF2F3F4); + select_theme.setSelection((int)(15)); + } + else { + if (THEME.getString("THEME", "").equals("16")) { + main_refresh_layout.setBackgroundColor(0xFFF2F3F4); + main_scroll_about.setBackgroundColor(0xFFF2F3F4); + main_scroll_settings.setBackgroundColor(0xFFF2F3F4); + box_header.setBackgroundColor(0xFF8B0000); + box_settings_icon_close.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + box_icon_close.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + box_sub_header.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + main_box_1.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + main_box_2.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + main_box_3.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + main_box_5.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + main_box_6.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + main_box_8.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + main_box_9.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + main_box_10.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + main_box_11.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + main_box_14.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + main_box_16.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + main_box_17.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + main_box_18.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + main_box_20.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + main_box_21.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + box_support.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + box_donate.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + box_about.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + box_source.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + box_website.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + box_discord.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + box_reddit.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + box_faq.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + box_about_header.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + box_about_1.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + box_about_2.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + box_about_3.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + box_about_4.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + box_about_5.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + box_about_6.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + box_about_7.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + box_about_sub.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + box_reboot.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + box_reset_preferences.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + box_separator_1.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFF2F3F4)); + box_separator_2.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFF2F3F4)); + box_separator_3.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFF2F3F4)); + box_separator_4.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFF2F3F4)); + box_separator_8.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + box_separator_9.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF8B0000)); + + title_header.setTextColor(0xFFF2F3F4); + cloned_version.setTextColor(0xFFF2F3F4); + experiment_version.setTextColor(0xFFF2F3F4); + list_auto_refresh.setTextColor(0xFFF2F3F4); + force_auto_install.setTextColor(0xFFF2F3F4); + disable_reward_ad.setTextColor(0xFFF2F3F4); + disable_notification.setTextColor(0xFFF2F3F4); + hide_stock_patched.setTextColor(0xFFF2F3F4); + hide_amoled_patched.setTextColor(0xFFF2F3F4); + hide_lite_patched.setTextColor(0xFFF2F3F4); + theme.setTextColor(0xFFF2F3F4); + language.setTextColor(0xFFF2F3F4); + apk_location.setTextColor(0xFFF2F3F4); + clear_directory_folders.setTextColor(0xFFF2F3F4); + reboot.setTextColor(0xFFFFFFFF); + reset_preferences.setTextColor(0xFFFFFFFF); + xmanager_dev.setTextColor(0xFFF2F3F4); + patched_devs.setTextColor(0xFFF2F3F4); + support_team.setTextColor(0xFFF2F3F4); + manager_testers.setTextColor(0xFFF2F3F4); + manager_hosting.setTextColor(0xFFF2F3F4); + mobilism_team.setTextColor(0xFFF2F3F4); + forum_team.setTextColor(0xFFF2F3F4); + manager_lang_1.setTextColor(0xFFF2F3F4); + manager_lang_2.setTextColor(0xFFF2F3F4); + manager_lang_3.setTextColor(0xFFF2F3F4); + manager_lang_4.setTextColor(0xFFF2F3F4); + manager_lang_5.setTextColor(0xFFF2F3F4); + manager_lang_6.setTextColor(0xFFF2F3F4); + manager_lang_7.setTextColor(0xFFF2F3F4); + manager_lang_8.setTextColor(0xFFF2F3F4); + manager_lang_9.setTextColor(0xFFF2F3F4); + manager_lang_10.setTextColor(0xFFF2F3F4); + manager_lang_11.setTextColor(0xFFF2F3F4); + manager_lang_12.setTextColor(0xFFF2F3F4); + manager_lang_13.setTextColor(0xFFF2F3F4); + manager_lang_14.setTextColor(0xFFF2F3F4); + manager_lang_15.setTextColor(0xFFF2F3F4); + manager_lang_16.setTextColor(0xFFF2F3F4); + manager_lang_17.setTextColor(0xFFF2F3F4); + manager_lang_18.setTextColor(0xFFF2F3F4); + manager_lang_19.setTextColor(0xFFF2F3F4); + manager_lang_20.setTextColor(0xFFF2F3F4); + manager_lang_21.setTextColor(0xFFF2F3F4); + manager_lang_22.setTextColor(0xFFF2F3F4); + manager_lang_23.setTextColor(0xFFF2F3F4); + manager_lang_24.setTextColor(0xFFF2F3F4); + manager_lang_25.setTextColor(0xFFF2F3F4); + manager_lang_26.setTextColor(0xFFF2F3F4); + manager_lang_27.setTextColor(0xFFF2F3F4); + manager_lang_28.setTextColor(0xFFF2F3F4); + manager_lang_29.setTextColor(0xFFF2F3F4); + manager_lang_30.setTextColor(0xFFF2F3F4); + manager_lang_31.setTextColor(0xFFF2F3F4); + manager_lang_32.setTextColor(0xFFF2F3F4); + manager_lang_33.setTextColor(0xFFF2F3F4); + manager_lang_34.setTextColor(0xFFF2F3F4); + manager_lang_35.setTextColor(0xFFF2F3F4); + manager_lang_36.setTextColor(0xFFF2F3F4); + manager_lang_37.setTextColor(0xFFF2F3F4); + manager_lang_38.setTextColor(0xFFF2F3F4); + manager_lang_39.setTextColor(0xFFF2F3F4); + manager_lang_40.setTextColor(0xFFF2F3F4); + manager_lang_41.setTextColor(0xFFF2F3F4); + manager_lang_42.setTextColor(0xFFF2F3F4); + manager_lang_43.setTextColor(0xFFF2F3F4); + manager_lang_44.setTextColor(0xFFF2F3F4); + manager_donors.setTextColor(0xFFF2F3F4); + contributors.setTextColor(0xFF8B0000); + title_1.setTextColor(0xFFF2F3F4); + title_2.setTextColor(0xFFF2F3F4); + title_3.setTextColor(0xFFF2F3F4); + title_6.setTextColor(0xFF8B0000); + sub_text_installed.setTextColor(0xFFF2F3F4); + title_sub.setTextColor(0xFFF2F3F4); + support.setTextColor(0xFFF2F3F4); + reddit.setTextColor(0xFFF2F3F4); + donate.setTextColor(0xFFF2F3F4); + about.setTextColor(0xFFF2F3F4); + discord.setTextColor(0xFFF2F3F4); + source.setTextColor(0xFFF2F3F4); + website.setTextColor(0xFFF2F3F4); + faq.setTextColor(0xFFF2F3F4); + select_theme.setSelection((int)(16)); + } + else { + if (THEME.getString("THEME", "").equals("17")) { + main_refresh_layout.setBackgroundColor(0xFFF2F3F4); + main_scroll_about.setBackgroundColor(0xFFF2F3F4); + main_scroll_settings.setBackgroundColor(0xFFF2F3F4); + box_header.setBackgroundColor(0xFFFF8C00); + box_settings_icon_close.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + box_icon_close.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + box_sub_header.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + main_box_1.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + main_box_2.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + main_box_3.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + main_box_5.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + main_box_6.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + main_box_8.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + main_box_9.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + main_box_10.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + main_box_11.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + main_box_14.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + main_box_16.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + main_box_17.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + main_box_18.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + main_box_20.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + main_box_21.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + box_support.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + box_donate.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + box_about.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + box_source.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + box_website.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + box_discord.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + box_reddit.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + box_faq.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + box_about_header.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + box_about_1.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + box_about_2.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + box_about_3.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + box_about_4.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + box_about_5.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + box_about_6.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + box_about_7.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + box_about_sub.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + box_reboot.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + box_reset_preferences.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + box_separator_1.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFF2F3F4)); + box_separator_2.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFF2F3F4)); + box_separator_3.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFF2F3F4)); + box_separator_4.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFF2F3F4)); + box_separator_8.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + box_separator_9.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFFF8C00)); + + title_header.setTextColor(0xFFF2F3F4); + cloned_version.setTextColor(0xFFF2F3F4); + experiment_version.setTextColor(0xFFF2F3F4); + list_auto_refresh.setTextColor(0xFFF2F3F4); + force_auto_install.setTextColor(0xFFF2F3F4); + disable_reward_ad.setTextColor(0xFFF2F3F4); + disable_notification.setTextColor(0xFFF2F3F4); + hide_stock_patched.setTextColor(0xFFF2F3F4); + hide_amoled_patched.setTextColor(0xFFF2F3F4); + hide_lite_patched.setTextColor(0xFFF2F3F4); + theme.setTextColor(0xFFF2F3F4); + language.setTextColor(0xFFF2F3F4); + apk_location.setTextColor(0xFFF2F3F4); + clear_directory_folders.setTextColor(0xFFF2F3F4); + reboot.setTextColor(0xFFFFFFFF); + reset_preferences.setTextColor(0xFFFFFFFF); + xmanager_dev.setTextColor(0xFFF2F3F4); + patched_devs.setTextColor(0xFFF2F3F4); + support_team.setTextColor(0xFFF2F3F4); + manager_testers.setTextColor(0xFFF2F3F4); + manager_hosting.setTextColor(0xFFF2F3F4); + mobilism_team.setTextColor(0xFFF2F3F4); + forum_team.setTextColor(0xFFF2F3F4); + manager_lang_1.setTextColor(0xFFF2F3F4); + manager_lang_2.setTextColor(0xFFF2F3F4); + manager_lang_3.setTextColor(0xFFF2F3F4); + manager_lang_4.setTextColor(0xFFF2F3F4); + manager_lang_5.setTextColor(0xFFF2F3F4); + manager_lang_6.setTextColor(0xFFF2F3F4); + manager_lang_7.setTextColor(0xFFF2F3F4); + manager_lang_8.setTextColor(0xFFF2F3F4); + manager_lang_9.setTextColor(0xFFF2F3F4); + manager_lang_10.setTextColor(0xFFF2F3F4); + manager_lang_11.setTextColor(0xFFF2F3F4); + manager_lang_12.setTextColor(0xFFF2F3F4); + manager_lang_13.setTextColor(0xFFF2F3F4); + manager_lang_14.setTextColor(0xFFF2F3F4); + manager_lang_15.setTextColor(0xFFF2F3F4); + manager_lang_16.setTextColor(0xFFF2F3F4); + manager_lang_17.setTextColor(0xFFF2F3F4); + manager_lang_18.setTextColor(0xFFF2F3F4); + manager_lang_19.setTextColor(0xFFF2F3F4); + manager_lang_20.setTextColor(0xFFF2F3F4); + manager_lang_21.setTextColor(0xFFF2F3F4); + manager_lang_22.setTextColor(0xFFF2F3F4); + manager_lang_23.setTextColor(0xFFF2F3F4); + manager_lang_24.setTextColor(0xFFF2F3F4); + manager_lang_25.setTextColor(0xFFF2F3F4); + manager_lang_26.setTextColor(0xFFF2F3F4); + manager_lang_27.setTextColor(0xFFF2F3F4); + manager_lang_28.setTextColor(0xFFF2F3F4); + manager_lang_29.setTextColor(0xFFF2F3F4); + manager_lang_30.setTextColor(0xFFF2F3F4); + manager_lang_31.setTextColor(0xFFF2F3F4); + manager_lang_32.setTextColor(0xFFF2F3F4); + manager_lang_33.setTextColor(0xFFF2F3F4); + manager_lang_34.setTextColor(0xFFF2F3F4); + manager_lang_35.setTextColor(0xFFF2F3F4); + manager_lang_36.setTextColor(0xFFF2F3F4); + manager_lang_37.setTextColor(0xFFF2F3F4); + manager_lang_38.setTextColor(0xFFF2F3F4); + manager_lang_39.setTextColor(0xFFF2F3F4); + manager_lang_40.setTextColor(0xFFF2F3F4); + manager_lang_41.setTextColor(0xFFF2F3F4); + manager_lang_42.setTextColor(0xFFF2F3F4); + manager_lang_43.setTextColor(0xFFF2F3F4); + manager_lang_44.setTextColor(0xFFF2F3F4); + manager_donors.setTextColor(0xFFF2F3F4); + contributors.setTextColor(0xFFFF8C00); + title_1.setTextColor(0xFFF2F3F4); + title_2.setTextColor(0xFFF2F3F4); + title_3.setTextColor(0xFFF2F3F4); + title_6.setTextColor(0xFFFF8C00); + sub_text_installed.setTextColor(0xFFF2F3F4); + title_sub.setTextColor(0xFFF2F3F4); + support.setTextColor(0xFFF2F3F4); + reddit.setTextColor(0xFFF2F3F4); + donate.setTextColor(0xFFF2F3F4); + about.setTextColor(0xFFF2F3F4); + discord.setTextColor(0xFFF2F3F4); + source.setTextColor(0xFFF2F3F4); + website.setTextColor(0xFFF2F3F4); + faq.setTextColor(0xFFF2F3F4); + select_theme.setSelection((int)(17)); + } + else { + if (THEME.getString("THEME", "").equals("18")) { + main_refresh_layout.setBackgroundColor(0xFFF2F3F4); + main_scroll_about.setBackgroundColor(0xFFF2F3F4); + main_scroll_settings.setBackgroundColor(0xFFF2F3F4); + box_header.setBackgroundColor(0xFFAA336A); + box_settings_icon_close.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + box_icon_close.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + box_sub_header.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + main_box_1.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + main_box_2.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + main_box_3.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + main_box_5.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + main_box_6.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + main_box_8.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + main_box_9.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + main_box_10.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + main_box_11.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + main_box_14.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + main_box_16.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + main_box_17.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + main_box_18.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + main_box_20.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + main_box_21.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + box_support.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + box_donate.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + box_about.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + box_source.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + box_website.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + box_discord.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + box_reddit.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + box_faq.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + box_about_header.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + box_about_1.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + box_about_2.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + box_about_3.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + box_about_4.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + box_about_5.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + box_about_6.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + box_about_7.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + box_about_sub.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + box_reboot.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + box_reset_preferences.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + box_separator_1.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFF2F3F4)); + box_separator_2.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFF2F3F4)); + box_separator_3.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFF2F3F4)); + box_separator_4.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFF2F3F4)); + box_separator_8.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + box_separator_9.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFAA336A)); + + title_header.setTextColor(0xFFF2F3F4); + cloned_version.setTextColor(0xFFF2F3F4); + experiment_version.setTextColor(0xFFF2F3F4); + list_auto_refresh.setTextColor(0xFFF2F3F4); + force_auto_install.setTextColor(0xFFF2F3F4); + disable_reward_ad.setTextColor(0xFFF2F3F4); + disable_notification.setTextColor(0xFFF2F3F4); + hide_stock_patched.setTextColor(0xFFF2F3F4); + hide_amoled_patched.setTextColor(0xFFF2F3F4); + hide_lite_patched.setTextColor(0xFFF2F3F4); + theme.setTextColor(0xFFF2F3F4); + language.setTextColor(0xFFF2F3F4); + apk_location.setTextColor(0xFFF2F3F4); + clear_directory_folders.setTextColor(0xFFF2F3F4); + reboot.setTextColor(0xFFFFFFFF); + reset_preferences.setTextColor(0xFFFFFFFF); + xmanager_dev.setTextColor(0xFFF2F3F4); + patched_devs.setTextColor(0xFFF2F3F4); + support_team.setTextColor(0xFFF2F3F4); + manager_testers.setTextColor(0xFFF2F3F4); + manager_hosting.setTextColor(0xFFF2F3F4); + mobilism_team.setTextColor(0xFFF2F3F4); + forum_team.setTextColor(0xFFF2F3F4); + manager_lang_1.setTextColor(0xFFF2F3F4); + manager_lang_2.setTextColor(0xFFF2F3F4); + manager_lang_3.setTextColor(0xFFF2F3F4); + manager_lang_4.setTextColor(0xFFF2F3F4); + manager_lang_5.setTextColor(0xFFF2F3F4); + manager_lang_6.setTextColor(0xFFF2F3F4); + manager_lang_7.setTextColor(0xFFF2F3F4); + manager_lang_8.setTextColor(0xFFF2F3F4); + manager_lang_9.setTextColor(0xFFF2F3F4); + manager_lang_10.setTextColor(0xFFF2F3F4); + manager_lang_11.setTextColor(0xFFF2F3F4); + manager_lang_12.setTextColor(0xFFF2F3F4); + manager_lang_13.setTextColor(0xFFF2F3F4); + manager_lang_14.setTextColor(0xFFF2F3F4); + manager_lang_15.setTextColor(0xFFF2F3F4); + manager_lang_16.setTextColor(0xFFF2F3F4); + manager_lang_17.setTextColor(0xFFF2F3F4); + manager_lang_18.setTextColor(0xFFF2F3F4); + manager_lang_19.setTextColor(0xFFF2F3F4); + manager_lang_20.setTextColor(0xFFF2F3F4); + manager_lang_21.setTextColor(0xFFF2F3F4); + manager_lang_22.setTextColor(0xFFF2F3F4); + manager_lang_23.setTextColor(0xFFF2F3F4); + manager_lang_24.setTextColor(0xFFF2F3F4); + manager_lang_25.setTextColor(0xFFF2F3F4); + manager_lang_26.setTextColor(0xFFF2F3F4); + manager_lang_27.setTextColor(0xFFF2F3F4); + manager_lang_28.setTextColor(0xFFF2F3F4); + manager_lang_29.setTextColor(0xFFF2F3F4); + manager_lang_30.setTextColor(0xFFF2F3F4); + manager_lang_31.setTextColor(0xFFF2F3F4); + manager_lang_32.setTextColor(0xFFF2F3F4); + manager_lang_33.setTextColor(0xFFF2F3F4); + manager_lang_34.setTextColor(0xFFF2F3F4); + manager_lang_35.setTextColor(0xFFF2F3F4); + manager_lang_36.setTextColor(0xFFF2F3F4); + manager_lang_37.setTextColor(0xFFF2F3F4); + manager_lang_38.setTextColor(0xFFF2F3F4); + manager_lang_39.setTextColor(0xFFF2F3F4); + manager_lang_40.setTextColor(0xFFF2F3F4); + manager_lang_41.setTextColor(0xFFF2F3F4); + manager_lang_42.setTextColor(0xFFF2F3F4); + manager_lang_43.setTextColor(0xFFF2F3F4); + manager_lang_44.setTextColor(0xFFF2F3F4); + manager_donors.setTextColor(0xFFF2F3F4); + contributors.setTextColor(0xFFAA336A); + title_1.setTextColor(0xFFF2F3F4); + title_2.setTextColor(0xFFF2F3F4); + title_3.setTextColor(0xFFF2F3F4); + title_6.setTextColor(0xFFAA336A); + sub_text_installed.setTextColor(0xFFF2F3F4); + title_sub.setTextColor(0xFFF2F3F4); + support.setTextColor(0xFFF2F3F4); + reddit.setTextColor(0xFFF2F3F4); + donate.setTextColor(0xFFF2F3F4); + about.setTextColor(0xFFF2F3F4); + discord.setTextColor(0xFFF2F3F4); + source.setTextColor(0xFFF2F3F4); + website.setTextColor(0xFFF2F3F4); + faq.setTextColor(0xFFF2F3F4); + select_theme.setSelection((int)(18)); + } + else { + if (THEME.getString("THEME", "").equals("19")) { + main_refresh_layout.setBackgroundColor(0xFFF2F3F4); + main_scroll_about.setBackgroundColor(0xFFF2F3F4); + main_scroll_settings.setBackgroundColor(0xFFF2F3F4); + box_header.setBackgroundColor(0xFF301934); + box_settings_icon_close.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + box_icon_close.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + box_sub_header.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + main_box_1.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + main_box_2.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + main_box_3.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + main_box_5.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + main_box_6.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + main_box_8.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + main_box_9.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + main_box_10.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + main_box_11.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + main_box_14.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + main_box_16.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + main_box_17.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + main_box_18.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + main_box_20.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + main_box_21.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + box_support.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + box_donate.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + box_about.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + box_source.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + box_website.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + box_discord.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + box_reddit.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + box_faq.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + box_about_header.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + box_about_1.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + box_about_2.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + box_about_3.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + box_about_4.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + box_about_5.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + box_about_6.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + box_about_7.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + box_about_sub.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + box_reboot.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + box_reset_preferences.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + box_separator_1.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFF2F3F4)); + box_separator_2.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFF2F3F4)); + box_separator_3.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFF2F3F4)); + box_separator_4.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFF2F3F4)); + box_separator_8.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + box_separator_9.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF301934)); + + title_header.setTextColor(0xFFF2F3F4); + cloned_version.setTextColor(0xFFF2F3F4); + experiment_version.setTextColor(0xFFF2F3F4); + list_auto_refresh.setTextColor(0xFFF2F3F4); + force_auto_install.setTextColor(0xFFF2F3F4); + disable_reward_ad.setTextColor(0xFFF2F3F4); + disable_notification.setTextColor(0xFFF2F3F4); + hide_stock_patched.setTextColor(0xFFF2F3F4); + hide_amoled_patched.setTextColor(0xFFF2F3F4); + hide_lite_patched.setTextColor(0xFFF2F3F4); + theme.setTextColor(0xFFF2F3F4); + language.setTextColor(0xFFF2F3F4); + apk_location.setTextColor(0xFFF2F3F4); + clear_directory_folders.setTextColor(0xFFF2F3F4); + reboot.setTextColor(0xFFFFFFFF); + reset_preferences.setTextColor(0xFFFFFFFF); + xmanager_dev.setTextColor(0xFFF2F3F4); + patched_devs.setTextColor(0xFFF2F3F4); + support_team.setTextColor(0xFFF2F3F4); + manager_testers.setTextColor(0xFFF2F3F4); + manager_hosting.setTextColor(0xFFF2F3F4); + mobilism_team.setTextColor(0xFFF2F3F4); + forum_team.setTextColor(0xFFF2F3F4); + manager_lang_1.setTextColor(0xFFF2F3F4); + manager_lang_2.setTextColor(0xFFF2F3F4); + manager_lang_3.setTextColor(0xFFF2F3F4); + manager_lang_4.setTextColor(0xFFF2F3F4); + manager_lang_5.setTextColor(0xFFF2F3F4); + manager_lang_6.setTextColor(0xFFF2F3F4); + manager_lang_7.setTextColor(0xFFF2F3F4); + manager_lang_8.setTextColor(0xFFF2F3F4); + manager_lang_9.setTextColor(0xFFF2F3F4); + manager_lang_10.setTextColor(0xFFF2F3F4); + manager_lang_11.setTextColor(0xFFF2F3F4); + manager_lang_12.setTextColor(0xFFF2F3F4); + manager_lang_13.setTextColor(0xFFF2F3F4); + manager_lang_14.setTextColor(0xFFF2F3F4); + manager_lang_15.setTextColor(0xFFF2F3F4); + manager_lang_16.setTextColor(0xFFF2F3F4); + manager_lang_17.setTextColor(0xFFF2F3F4); + manager_lang_18.setTextColor(0xFFF2F3F4); + manager_lang_19.setTextColor(0xFFF2F3F4); + manager_lang_20.setTextColor(0xFFF2F3F4); + manager_lang_21.setTextColor(0xFFF2F3F4); + manager_lang_22.setTextColor(0xFFF2F3F4); + manager_lang_23.setTextColor(0xFFF2F3F4); + manager_lang_24.setTextColor(0xFFF2F3F4); + manager_lang_25.setTextColor(0xFFF2F3F4); + manager_lang_26.setTextColor(0xFFF2F3F4); + manager_lang_27.setTextColor(0xFFF2F3F4); + manager_lang_28.setTextColor(0xFFF2F3F4); + manager_lang_29.setTextColor(0xFFF2F3F4); + manager_lang_30.setTextColor(0xFFF2F3F4); + manager_lang_31.setTextColor(0xFFF2F3F4); + manager_lang_32.setTextColor(0xFFF2F3F4); + manager_lang_33.setTextColor(0xFFF2F3F4); + manager_lang_34.setTextColor(0xFFF2F3F4); + manager_lang_35.setTextColor(0xFFF2F3F4); + manager_lang_36.setTextColor(0xFFF2F3F4); + manager_lang_37.setTextColor(0xFFF2F3F4); + manager_lang_38.setTextColor(0xFFF2F3F4); + manager_lang_39.setTextColor(0xFFF2F3F4); + manager_lang_40.setTextColor(0xFFF2F3F4); + manager_lang_41.setTextColor(0xFFF2F3F4); + manager_lang_42.setTextColor(0xFFF2F3F4); + manager_lang_43.setTextColor(0xFFF2F3F4); + manager_lang_44.setTextColor(0xFFF2F3F4); + manager_donors.setTextColor(0xFFF2F3F4); + contributors.setTextColor(0xFF301934); + title_1.setTextColor(0xFFF2F3F4); + title_2.setTextColor(0xFFF2F3F4); + title_3.setTextColor(0xFFF2F3F4); + title_6.setTextColor(0xFF301934); + sub_text_installed.setTextColor(0xFFF2F3F4); + title_sub.setTextColor(0xFFF2F3F4); + support.setTextColor(0xFFF2F3F4); + reddit.setTextColor(0xFFF2F3F4); + donate.setTextColor(0xFFF2F3F4); + about.setTextColor(0xFFF2F3F4); + discord.setTextColor(0xFFF2F3F4); + source.setTextColor(0xFFF2F3F4); + website.setTextColor(0xFFF2F3F4); + faq.setTextColor(0xFFF2F3F4); + select_theme.setSelection((int)(19)); + } + else { + if (THEME.getString("THEME", "").equals("20")) { + main_refresh_layout.setBackgroundColor(0xFFF2F3F4); + main_scroll_about.setBackgroundColor(0xFFF2F3F4); + main_scroll_settings.setBackgroundColor(0xFFF2F3F4); + box_header.setBackgroundColor(0xFF008B8B); + box_settings_icon_close.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + box_icon_close.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + box_sub_header.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + main_box_1.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + main_box_2.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + main_box_3.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + main_box_5.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + main_box_6.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + main_box_8.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + main_box_9.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + main_box_10.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + main_box_11.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + main_box_14.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + main_box_16.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + main_box_17.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + main_box_18.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + main_box_20.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + main_box_21.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + box_support.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + box_donate.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + box_about.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + box_source.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + box_website.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + box_discord.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + box_reddit.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + box_faq.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + box_about_header.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + box_about_1.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + box_about_2.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + box_about_3.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + box_about_4.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + box_about_5.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + box_about_6.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + box_about_7.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + box_about_sub.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + box_reboot.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + box_reset_preferences.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + box_separator_1.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFF2F3F4)); + box_separator_2.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFF2F3F4)); + box_separator_3.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFF2F3F4)); + box_separator_4.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFFF2F3F4)); + box_separator_8.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + box_separator_9.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF008B8B)); + + title_header.setTextColor(0xFFF2F3F4); + cloned_version.setTextColor(0xFFF2F3F4); + experiment_version.setTextColor(0xFFF2F3F4); + list_auto_refresh.setTextColor(0xFFF2F3F4); + force_auto_install.setTextColor(0xFFF2F3F4); + disable_reward_ad.setTextColor(0xFFF2F3F4); + disable_notification.setTextColor(0xFFF2F3F4); + hide_stock_patched.setTextColor(0xFFF2F3F4); + hide_amoled_patched.setTextColor(0xFFF2F3F4); + hide_lite_patched.setTextColor(0xFFF2F3F4); + theme.setTextColor(0xFFF2F3F4); + language.setTextColor(0xFFF2F3F4); + apk_location.setTextColor(0xFFF2F3F4); + clear_directory_folders.setTextColor(0xFFF2F3F4); + reboot.setTextColor(0xFFFFFFFF); + reset_preferences.setTextColor(0xFFFFFFFF); + xmanager_dev.setTextColor(0xFFF2F3F4); + patched_devs.setTextColor(0xFFF2F3F4); + support_team.setTextColor(0xFFF2F3F4); + manager_testers.setTextColor(0xFFF2F3F4); + manager_hosting.setTextColor(0xFFF2F3F4); + mobilism_team.setTextColor(0xFFF2F3F4); + forum_team.setTextColor(0xFFF2F3F4); + manager_lang_1.setTextColor(0xFFF2F3F4); + manager_lang_2.setTextColor(0xFFF2F3F4); + manager_lang_3.setTextColor(0xFFF2F3F4); + manager_lang_4.setTextColor(0xFFF2F3F4); + manager_lang_5.setTextColor(0xFFF2F3F4); + manager_lang_6.setTextColor(0xFFF2F3F4); + manager_lang_7.setTextColor(0xFFF2F3F4); + manager_lang_8.setTextColor(0xFFF2F3F4); + manager_lang_9.setTextColor(0xFFF2F3F4); + manager_lang_10.setTextColor(0xFFF2F3F4); + manager_lang_11.setTextColor(0xFFF2F3F4); + manager_lang_12.setTextColor(0xFFF2F3F4); + manager_lang_13.setTextColor(0xFFF2F3F4); + manager_lang_14.setTextColor(0xFFF2F3F4); + manager_lang_15.setTextColor(0xFFF2F3F4); + manager_lang_16.setTextColor(0xFFF2F3F4); + manager_lang_17.setTextColor(0xFFF2F3F4); + manager_lang_18.setTextColor(0xFFF2F3F4); + manager_lang_19.setTextColor(0xFFF2F3F4); + manager_lang_20.setTextColor(0xFFF2F3F4); + manager_lang_21.setTextColor(0xFFF2F3F4); + manager_lang_22.setTextColor(0xFFF2F3F4); + manager_lang_23.setTextColor(0xFFF2F3F4); + manager_lang_24.setTextColor(0xFFF2F3F4); + manager_lang_25.setTextColor(0xFFF2F3F4); + manager_lang_26.setTextColor(0xFFF2F3F4); + manager_lang_27.setTextColor(0xFFF2F3F4); + manager_lang_28.setTextColor(0xFFF2F3F4); + manager_lang_29.setTextColor(0xFFF2F3F4); + manager_lang_30.setTextColor(0xFFF2F3F4); + manager_lang_31.setTextColor(0xFFF2F3F4); + manager_lang_32.setTextColor(0xFFF2F3F4); + manager_lang_33.setTextColor(0xFFF2F3F4); + manager_lang_34.setTextColor(0xFFF2F3F4); + manager_lang_35.setTextColor(0xFFF2F3F4); + manager_lang_36.setTextColor(0xFFF2F3F4); + manager_lang_37.setTextColor(0xFFF2F3F4); + manager_lang_38.setTextColor(0xFFF2F3F4); + manager_lang_39.setTextColor(0xFFF2F3F4); + manager_lang_40.setTextColor(0xFFF2F3F4); + manager_lang_41.setTextColor(0xFFF2F3F4); + manager_lang_42.setTextColor(0xFFF2F3F4); + manager_lang_43.setTextColor(0xFFF2F3F4); + manager_lang_44.setTextColor(0xFFF2F3F4); + manager_donors.setTextColor(0xFFF2F3F4); + contributors.setTextColor(0xFF008B8B); + title_1.setTextColor(0xFFF2F3F4); + title_2.setTextColor(0xFFF2F3F4); + title_3.setTextColor(0xFFF2F3F4); + title_6.setTextColor(0xFF008B8B); + sub_text_installed.setTextColor(0xFFF2F3F4); + title_sub.setTextColor(0xFFF2F3F4); + support.setTextColor(0xFFF2F3F4); + reddit.setTextColor(0xFFF2F3F4); + donate.setTextColor(0xFFF2F3F4); + about.setTextColor(0xFFF2F3F4); + discord.setTextColor(0xFFF2F3F4); + source.setTextColor(0xFFF2F3F4); + website.setTextColor(0xFFF2F3F4); + faq.setTextColor(0xFFF2F3F4); + select_theme.setSelection((int)(20)); + } + } + } + } + } + } + } } } } @@ -6875,7 +7303,7 @@ public class MainActivity extends AppCompatActivity { }); AlertDialog = Update_Authorized.create(); AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); + _AlertDialog_Color(); AlertDialog.show(); } catch(Exception e) { @@ -6924,7 +7352,7 @@ public class MainActivity extends AppCompatActivity { }); AlertDialog = Update_Unauthorized.create(); AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); + _AlertDialog_Color(); AlertDialog.show(); } catch(Exception e) { @@ -6957,8 +7385,43 @@ public class MainActivity extends AppCompatActivity { final long downloadId = manager.enqueue(request); final ProgressDialog prog = new ProgressDialog(MainActivity.this, R.style.Progress_Dialog); final ProgressDialog check = new ProgressDialog(MainActivity.this, R.style.Progress_Dialog); - prog.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); - check.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); + if (THEME.getString("THEME", "").equals("14")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_green); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_green); + } else { + if (THEME.getString("THEME", "").equals("15")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_blue); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_blue); + } else { + if (THEME.getString("THEME", "").equals("16")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_red); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_red); + } else { + if (THEME.getString("THEME", "").equals("17")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_orange); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_orange);; + } else { + if (THEME.getString("THEME", "").equals("18")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_pink); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_pink); + } else { + if (THEME.getString("THEME", "").equals("19")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_purple); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_purple); + } else { + if (THEME.getString("THEME", "").equals("20")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_cyan); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_cyan); + } else { + prog.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); + check.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); + } + } + } + } + } + } + } Thread progress = new Thread() { @Override public void run() { @@ -7411,52 +7874,48 @@ public class MainActivity extends AppCompatActivity { c = null; Animation d; d = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left); - d.setDuration(500); main_box_12.startAnimation(d); + d.setDuration(500); main_box_19.startAnimation(d); d = null; Animation e; e = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left); - e.setDuration(600); main_box_19.startAnimation(e); + e.setDuration(600); main_box_6.startAnimation(e); e = null; Animation f; f = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left); - f.setDuration(700); main_box_6.startAnimation(f); + f.setDuration(700); box_sub_header.startAnimation(f); f = null; Animation g; g = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left); - g.setDuration(800); box_sub_header.startAnimation(g); + g.setDuration(800); main_box_4.startAnimation(g); g = null; Animation h; h = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left); - h.setDuration(900); main_box_4.startAnimation(h); + h.setDuration(900); main_box_15.startAnimation(h); h = null; Animation i; i = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left); - i.setDuration(1000); main_box_15.startAnimation(i); + i.setDuration(300); title_header.startAnimation(i); i = null; + Animation j; + j = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left); + j.setDuration(400); title_header_beta.startAnimation(j); + j = null; Animation k; k = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left); - k.setDuration(300); title_header.startAnimation(k); + k.setDuration(500); title_header_separator.startAnimation(k); k = null; Animation l; l = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left); - l.setDuration(400); title_header_beta.startAnimation(l); + l.setDuration(600); box_experiment.startAnimation(l); l = null; Animation m; m = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left); - m.setDuration(500); title_header_separator.startAnimation(m); + m.setDuration(700); box_switch.startAnimation(m); m = null; Animation n; n = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left); - n.setDuration(600); box_experiment.startAnimation(n); + n.setDuration(800); box_update.startAnimation(n); n = null; - Animation o; - o = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left); - o.setDuration(700); box_switch.startAnimation(o); - o = null; - Animation p; - p = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left); - p.setDuration(800); box_update.startAnimation(p); - p = null; } @@ -7583,7 +8042,6 @@ public class MainActivity extends AppCompatActivity { list_items_1.setVisibility(View.VISIBLE); list_items_2.setVisibility(View.GONE); list_items_3.setVisibility(View.GONE); - list_items_4.setVisibility(View.GONE); list_items_5.setVisibility(View.GONE); list_items_1.setAdapter(new List_items_1Adapter(stock_patched)); ((BaseAdapter)list_items_1.getAdapter()).notifyDataSetChanged(); @@ -7593,7 +8051,6 @@ public class MainActivity extends AppCompatActivity { list_items_1.setVisibility(View.VISIBLE); list_items_2.setVisibility(View.GONE); list_items_3.setVisibility(View.GONE); - list_items_4.setVisibility(View.GONE); list_items_5.setVisibility(View.GONE); list_items_1.setAdapter(new List_items_1Adapter(stock_cloned_patched)); ((BaseAdapter)list_items_1.getAdapter()).notifyDataSetChanged(); @@ -7603,7 +8060,6 @@ public class MainActivity extends AppCompatActivity { list_items_1.setVisibility(View.VISIBLE); list_items_2.setVisibility(View.GONE); list_items_3.setVisibility(View.GONE); - list_items_4.setVisibility(View.GONE); list_items_5.setVisibility(View.GONE); list_items_1.setAdapter(new List_items_1Adapter(stock_experimental_patched)); ((BaseAdapter)list_items_1.getAdapter()).notifyDataSetChanged(); @@ -7613,7 +8069,6 @@ public class MainActivity extends AppCompatActivity { list_items_1.setVisibility(View.VISIBLE); list_items_2.setVisibility(View.GONE); list_items_3.setVisibility(View.GONE); - list_items_4.setVisibility(View.GONE); list_items_5.setVisibility(View.GONE); list_items_1.setAdapter(new List_items_1Adapter(stock_experimental_cloned_patched)); ((BaseAdapter)list_items_1.getAdapter()).notifyDataSetChanged(); @@ -7628,7 +8083,6 @@ public class MainActivity extends AppCompatActivity { version_oc_01.setImageResource(R.drawable.open); version_oc_02.setImageResource(R.drawable.close); version_oc_03.setImageResource(R.drawable.close); - version_oc_04.setImageResource(R.drawable.close); changelogs_oc.setImageResource(R.drawable.close); Timer = new TimerTask() { @Override @@ -7640,7 +8094,6 @@ public class MainActivity extends AppCompatActivity { list_items_1.setVisibility(View.GONE); list_items_2.setVisibility(View.VISIBLE); list_items_3.setVisibility(View.GONE); - list_items_4.setVisibility(View.GONE); list_items_5.setVisibility(View.GONE); list_items_2.setAdapter(new List_items_2Adapter(amoled_patched)); ((BaseAdapter)list_items_2.getAdapter()).notifyDataSetChanged(); @@ -7650,7 +8103,6 @@ public class MainActivity extends AppCompatActivity { list_items_1.setVisibility(View.GONE); list_items_2.setVisibility(View.VISIBLE); list_items_3.setVisibility(View.GONE); - list_items_4.setVisibility(View.GONE); list_items_5.setVisibility(View.GONE); list_items_2.setAdapter(new List_items_2Adapter(amoled_cloned_patched)); ((BaseAdapter)list_items_2.getAdapter()).notifyDataSetChanged(); @@ -7660,7 +8112,6 @@ public class MainActivity extends AppCompatActivity { list_items_1.setVisibility(View.GONE); list_items_2.setVisibility(View.VISIBLE); list_items_3.setVisibility(View.GONE); - list_items_4.setVisibility(View.GONE); list_items_5.setVisibility(View.GONE); list_items_2.setAdapter(new List_items_2Adapter(amoled_experimental_patched)); ((BaseAdapter)list_items_2.getAdapter()).notifyDataSetChanged(); @@ -7670,7 +8121,6 @@ public class MainActivity extends AppCompatActivity { list_items_1.setVisibility(View.GONE); list_items_2.setVisibility(View.VISIBLE); list_items_3.setVisibility(View.GONE); - list_items_4.setVisibility(View.GONE); list_items_5.setVisibility(View.GONE); list_items_2.setAdapter(new List_items_2Adapter(amoled_experimental_cloned_patched)); ((BaseAdapter)list_items_2.getAdapter()).notifyDataSetChanged(); @@ -7685,7 +8135,6 @@ public class MainActivity extends AppCompatActivity { version_oc_01.setImageResource(R.drawable.close); version_oc_02.setImageResource(R.drawable.open); version_oc_03.setImageResource(R.drawable.close); - version_oc_04.setImageResource(R.drawable.close); changelogs_oc.setImageResource(R.drawable.close); Timer = new TimerTask() { @Override @@ -7700,12 +8149,10 @@ public class MainActivity extends AppCompatActivity { list_items_1.setVisibility(View.GONE); list_items_2.setVisibility(View.GONE); list_items_3.setVisibility(View.VISIBLE); - list_items_4.setVisibility(View.GONE); list_items_5.setVisibility(View.GONE); version_oc_01.setImageResource(R.drawable.close); version_oc_02.setImageResource(R.drawable.close); version_oc_03.setImageResource(R.drawable.open); - version_oc_04.setImageResource(R.drawable.close); changelogs_oc.setImageResource(R.drawable.close); list_items_3.setAdapter(new List_items_3Adapter(lite_patched)); ((BaseAdapter)list_items_3.getAdapter()).notifyDataSetChanged(); @@ -7722,12 +8169,10 @@ public class MainActivity extends AppCompatActivity { list_items_1.setVisibility(View.GONE); list_items_2.setVisibility(View.GONE); list_items_3.setVisibility(View.GONE); - list_items_4.setVisibility(View.GONE); list_items_5.setVisibility(View.VISIBLE); version_oc_01.setImageResource(R.drawable.close); version_oc_02.setImageResource(R.drawable.close); version_oc_03.setImageResource(R.drawable.close); - version_oc_04.setImageResource(R.drawable.close); changelogs_oc.setImageResource(R.drawable.open); list_items_5.setAdapter(new List_items_5Adapter(patched_changelogs)); ((BaseAdapter)list_items_5.getAdapter()).notifyDataSetChanged(); @@ -7741,12 +8186,10 @@ public class MainActivity extends AppCompatActivity { list_items_1.setVisibility(View.GONE); list_items_2.setVisibility(View.GONE); list_items_3.setVisibility(View.GONE); - list_items_4.setVisibility(View.GONE); list_items_5.setVisibility(View.GONE); version_oc_01.setImageResource(R.drawable.close); version_oc_02.setImageResource(R.drawable.close); version_oc_03.setImageResource(R.drawable.close); - version_oc_04.setImageResource(R.drawable.close); changelogs_oc.setImageResource(R.drawable.close); main_body.setAlpha((float)(1.0d)); String currentDateTimeString = java.text.DateFormat.getDateTimeInstance().format(new Date()); @@ -7815,8 +8258,43 @@ public class MainActivity extends AppCompatActivity { final long downloadId = manager.enqueue(request); final ProgressDialog prog = new ProgressDialog(MainActivity.this, R.style.Progress_Dialog); final ProgressDialog check = new ProgressDialog(MainActivity.this, R.style.Progress_Dialog); - prog.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); - check.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); + if (THEME.getString("THEME", "").equals("14")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_green); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_green); + } else { + if (THEME.getString("THEME", "").equals("15")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_blue); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_blue); + } else { + if (THEME.getString("THEME", "").equals("16")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_red); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_red); + } else { + if (THEME.getString("THEME", "").equals("17")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_orange); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_orange);; + } else { + if (THEME.getString("THEME", "").equals("18")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_pink); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_pink); + } else { + if (THEME.getString("THEME", "").equals("19")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_purple); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_purple); + } else { + if (THEME.getString("THEME", "").equals("20")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_cyan); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_cyan); + } else { + prog.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); + check.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); + } + } + } + } + } + } + } Thread progress = new Thread() { @Override public void run() { @@ -8018,6 +8496,7 @@ public class MainActivity extends AppCompatActivity { public void run() { prog.dismiss(); check.dismiss(); + _Downgrade_Checker(); if ((Installed_Version < Downloaded_Version) || ((Downloaded_Version > Installed_Version) || ((Installed_Version == Downloaded_Version) || Installed_Checker.equals("false")))) { if (getISignature(getApplicationContext()).equals(getDSignature(getApplicationContext())) || Installed_Checker.equals("false")) { StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); StrictMode.setVmPolicy(builder.build()); @@ -8155,16 +8634,51 @@ public class MainActivity extends AppCompatActivity { final long downloadId = manager.enqueue(request); final ProgressDialog prog = new ProgressDialog(MainActivity.this, R.style.Progress_Dialog); final ProgressDialog check = new ProgressDialog(MainActivity.this, R.style.Progress_Dialog); - prog.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); - check.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); - Thread progress = new Thread() { - @Override - public void run() { - boolean downloading = true; - while (downloading) { - DownloadManager.Query q = new DownloadManager.Query(); - q.setFilterById(downloadId); - android.database.Cursor cursor = manager.query(q); + if (THEME.getString("THEME", "").equals("14")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_green); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_green); + } else { + if (THEME.getString("THEME", "").equals("15")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_blue); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_blue); + } else { + if (THEME.getString("THEME", "").equals("16")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_red); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_red); + } else { + if (THEME.getString("THEME", "").equals("17")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_orange); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_orange);; + } else { + if (THEME.getString("THEME", "").equals("18")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_pink); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_pink); + } else { + if (THEME.getString("THEME", "").equals("19")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_purple); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_purple); + } else { + if (THEME.getString("THEME", "").equals("20")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_cyan); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_cyan); + } else { + prog.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); + check.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); + } + } + } + } + } + } + } + Thread progress = new Thread() { + @Override + public void run() { + boolean downloading = true; + while (downloading) { + DownloadManager.Query q = new DownloadManager.Query(); + q.setFilterById(downloadId); + android.database.Cursor cursor = manager.query(q); if (cursor != null) { if (cursor.moveToFirst()) { int bytes_downloaded = cursor.getInt(cursor .getColumnIndex(DownloadManager.COLUMN_BYTES_DOWNLOADED_SO_FAR)); @@ -8422,11 +8936,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest); sub_text_2.setText(R.string.latest); sub_text_3.setText(R.string.latest); - sub_text_4.setText(R.string.latest); versions_1.setText(R.string.versions); versions_2.setText(R.string.versions); versions_3.setText(R.string.versions); - versions_4.setText(R.string.versions); title_sub.setText(R.string.manager_tools); source.setText(R.string.source); support.setText(R.string.support); @@ -8483,7 +8995,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched); hide_amoled_patched.setText(R.string.hide_amoled_patched); hide_lite_patched.setText(R.string.hide_lite_patched); - hide_wave_patched.setText(R.string.hide_wave_patched); show_support.setText(R.string.show_support); show_support_desc.setText(R.string.show_support_desc); maintenance.setText(R.string.maintenance); @@ -8543,11 +9054,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_01); sub_text_2.setText(R.string.latest_01); sub_text_3.setText(R.string.latest_01); - sub_text_4.setText(R.string.latest_01); versions_1.setText(R.string.versions_01); versions_2.setText(R.string.versions_01); versions_3.setText(R.string.versions_01); - versions_4.setText(R.string.versions_01); title_sub.setText(R.string.manager_tools_01); source.setText(R.string.source_01); support.setText(R.string.support_01); @@ -8604,7 +9113,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_01); hide_amoled_patched.setText(R.string.hide_amoled_patched_01); hide_lite_patched.setText(R.string.hide_lite_patched_01); - hide_wave_patched.setText(R.string.hide_wave_patched_01); show_support.setText(R.string.show_support_01); show_support_desc.setText(R.string.show_support_desc_01); maintenance.setText(R.string.maintenance_01); @@ -8663,11 +9171,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_02); sub_text_2.setText(R.string.latest_02); sub_text_3.setText(R.string.latest_02); - sub_text_4.setText(R.string.latest_02); versions_1.setText(R.string.versions_02); versions_2.setText(R.string.versions_02); versions_3.setText(R.string.versions_02); - versions_4.setText(R.string.versions_02); title_sub.setText(R.string.manager_tools_02); source.setText(R.string.source_02); support.setText(R.string.support_02); @@ -8724,7 +9230,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_02); hide_amoled_patched.setText(R.string.hide_amoled_patched_02); hide_lite_patched.setText(R.string.hide_lite_patched_02); - hide_wave_patched.setText(R.string.hide_wave_patched_02); show_support.setText(R.string.show_support_02); show_support_desc.setText(R.string.show_support_desc_02); maintenance.setText(R.string.maintenance_02); @@ -8783,11 +9288,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_03); sub_text_2.setText(R.string.latest_03); sub_text_3.setText(R.string.latest_03); - sub_text_4.setText(R.string.latest_03); versions_1.setText(R.string.versions_03); versions_2.setText(R.string.versions_03); versions_3.setText(R.string.versions_03); - versions_4.setText(R.string.versions_03); title_sub.setText(R.string.manager_tools_03); source.setText(R.string.source_03); support.setText(R.string.support_03); @@ -8844,7 +9347,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_03); hide_amoled_patched.setText(R.string.hide_amoled_patched_03); hide_lite_patched.setText(R.string.hide_lite_patched_03); - hide_wave_patched.setText(R.string.hide_wave_patched_03); show_support.setText(R.string.show_support_03); show_support_desc.setText(R.string.show_support_desc_03); maintenance.setText(R.string.maintenance_03); @@ -8903,11 +9405,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_04); sub_text_2.setText(R.string.latest_04); sub_text_3.setText(R.string.latest_04); - sub_text_4.setText(R.string.latest_04); versions_1.setText(R.string.versions_04); versions_2.setText(R.string.versions_04); versions_3.setText(R.string.versions_04); - versions_4.setText(R.string.versions_04); title_sub.setText(R.string.manager_tools_04); source.setText(R.string.source_04); support.setText(R.string.support_04); @@ -8964,7 +9464,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_04); hide_amoled_patched.setText(R.string.hide_amoled_patched_04); hide_lite_patched.setText(R.string.hide_lite_patched_04); - hide_wave_patched.setText(R.string.hide_wave_patched_04); show_support.setText(R.string.show_support_04); show_support_desc.setText(R.string.show_support_desc_04); maintenance.setText(R.string.maintenance_04); @@ -9023,11 +9522,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_05); sub_text_2.setText(R.string.latest_05); sub_text_3.setText(R.string.latest_05); - sub_text_4.setText(R.string.latest_05); versions_1.setText(R.string.versions_05); versions_2.setText(R.string.versions_05); versions_3.setText(R.string.versions_05); - versions_4.setText(R.string.versions_05); title_sub.setText(R.string.manager_tools_05); source.setText(R.string.source_05); support.setText(R.string.support_05); @@ -9084,7 +9581,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_05); hide_amoled_patched.setText(R.string.hide_amoled_patched_05); hide_lite_patched.setText(R.string.hide_lite_patched_05); - hide_wave_patched.setText(R.string.hide_wave_patched_05); show_support.setText(R.string.show_support_05); show_support_desc.setText(R.string.show_support_desc_05); maintenance.setText(R.string.maintenance_05); @@ -9143,11 +9639,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_06); sub_text_2.setText(R.string.latest_06); sub_text_3.setText(R.string.latest_06); - sub_text_4.setText(R.string.latest_06); versions_1.setText(R.string.versions_06); versions_2.setText(R.string.versions_06); versions_3.setText(R.string.versions_06); - versions_4.setText(R.string.versions_06); title_sub.setText(R.string.manager_tools_06); source.setText(R.string.source_06); support.setText(R.string.support_06); @@ -9204,7 +9698,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_06); hide_amoled_patched.setText(R.string.hide_amoled_patched_06); hide_lite_patched.setText(R.string.hide_lite_patched_06); - hide_wave_patched.setText(R.string.hide_wave_patched_06); show_support.setText(R.string.show_support_06); show_support_desc.setText(R.string.show_support_desc_06); maintenance.setText(R.string.maintenance_06); @@ -9263,11 +9756,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_07); sub_text_2.setText(R.string.latest_07); sub_text_3.setText(R.string.latest_07); - sub_text_4.setText(R.string.latest_07); versions_1.setText(R.string.versions_07); versions_2.setText(R.string.versions_07); versions_3.setText(R.string.versions_07); - versions_4.setText(R.string.versions_07); title_sub.setText(R.string.manager_tools_07); source.setText(R.string.source_07); support.setText(R.string.support_07); @@ -9324,7 +9815,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_07); hide_amoled_patched.setText(R.string.hide_amoled_patched_07); hide_lite_patched.setText(R.string.hide_lite_patched_07); - hide_wave_patched.setText(R.string.hide_wave_patched_07); show_support.setText(R.string.show_support_07); show_support_desc.setText(R.string.show_support_desc_07); maintenance.setText(R.string.maintenance_07); @@ -9383,11 +9873,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_08); sub_text_2.setText(R.string.latest_08); sub_text_3.setText(R.string.latest_08); - sub_text_4.setText(R.string.latest_08); versions_1.setText(R.string.versions_08); versions_2.setText(R.string.versions_08); versions_3.setText(R.string.versions_08); - versions_4.setText(R.string.versions_08); title_sub.setText(R.string.manager_tools_08); source.setText(R.string.source_08); support.setText(R.string.support_08); @@ -9444,7 +9932,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_08); hide_amoled_patched.setText(R.string.hide_amoled_patched_08); hide_lite_patched.setText(R.string.hide_lite_patched_08); - hide_wave_patched.setText(R.string.hide_wave_patched_08); show_support.setText(R.string.show_support_08); show_support_desc.setText(R.string.show_support_desc_08); maintenance.setText(R.string.maintenance_08); @@ -9503,11 +9990,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_09); sub_text_2.setText(R.string.latest_09); sub_text_3.setText(R.string.latest_09); - sub_text_4.setText(R.string.latest_09); versions_1.setText(R.string.versions_09); versions_2.setText(R.string.versions_09); versions_3.setText(R.string.versions_09); - versions_4.setText(R.string.versions_09); title_sub.setText(R.string.manager_tools_09); source.setText(R.string.source_09); support.setText(R.string.support_09); @@ -9564,7 +10049,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_09); hide_amoled_patched.setText(R.string.hide_amoled_patched_09); hide_lite_patched.setText(R.string.hide_lite_patched_09); - hide_wave_patched.setText(R.string.hide_wave_patched_09); show_support.setText(R.string.show_support_09); show_support_desc.setText(R.string.show_support_desc_09); maintenance.setText(R.string.maintenance_09); @@ -9623,11 +10107,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_10); sub_text_2.setText(R.string.latest_10); sub_text_3.setText(R.string.latest_10); - sub_text_4.setText(R.string.latest_10); versions_1.setText(R.string.versions_10); versions_2.setText(R.string.versions_10); versions_3.setText(R.string.versions_10); - versions_4.setText(R.string.versions_10); title_sub.setText(R.string.manager_tools_10); source.setText(R.string.source_10); support.setText(R.string.support_10); @@ -9684,7 +10166,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_10); hide_amoled_patched.setText(R.string.hide_amoled_patched_10); hide_lite_patched.setText(R.string.hide_lite_patched_10); - hide_wave_patched.setText(R.string.hide_wave_patched_10); show_support.setText(R.string.show_support_10); show_support_desc.setText(R.string.show_support_desc_10); maintenance.setText(R.string.maintenance_10); @@ -9743,11 +10224,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_11); sub_text_2.setText(R.string.latest_11); sub_text_3.setText(R.string.latest_11); - sub_text_4.setText(R.string.latest_11); versions_1.setText(R.string.versions_11); versions_2.setText(R.string.versions_11); versions_3.setText(R.string.versions_11); - versions_4.setText(R.string.versions_11); title_sub.setText(R.string.manager_tools_11); source.setText(R.string.source_11); support.setText(R.string.support_11); @@ -9804,7 +10283,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_11); hide_amoled_patched.setText(R.string.hide_amoled_patched_11); hide_lite_patched.setText(R.string.hide_lite_patched_11); - hide_wave_patched.setText(R.string.hide_wave_patched_11); show_support.setText(R.string.show_support_11); show_support_desc.setText(R.string.show_support_desc_11); maintenance.setText(R.string.maintenance_11); @@ -9863,11 +10341,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_12); sub_text_2.setText(R.string.latest_12); sub_text_3.setText(R.string.latest_12); - sub_text_4.setText(R.string.latest_12); versions_1.setText(R.string.versions_12); versions_2.setText(R.string.versions_12); versions_3.setText(R.string.versions_12); - versions_4.setText(R.string.versions_12); title_sub.setText(R.string.manager_tools_12); source.setText(R.string.source_12); support.setText(R.string.support_12); @@ -9924,7 +10400,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_12); hide_amoled_patched.setText(R.string.hide_amoled_patched_12); hide_lite_patched.setText(R.string.hide_lite_patched_12); - hide_wave_patched.setText(R.string.hide_wave_patched_12); show_support.setText(R.string.show_support_12); show_support_desc.setText(R.string.show_support_desc_12); maintenance.setText(R.string.maintenance_12); @@ -9983,11 +10458,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_13); sub_text_2.setText(R.string.latest_13); sub_text_3.setText(R.string.latest_13); - sub_text_4.setText(R.string.latest_13); versions_1.setText(R.string.versions_13); versions_2.setText(R.string.versions_13); versions_3.setText(R.string.versions_13); - versions_4.setText(R.string.versions_13); title_sub.setText(R.string.manager_tools_13); source.setText(R.string.source_13); support.setText(R.string.support_13); @@ -10044,7 +10517,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_13); hide_amoled_patched.setText(R.string.hide_amoled_patched_13); hide_lite_patched.setText(R.string.hide_lite_patched_13); - hide_wave_patched.setText(R.string.hide_wave_patched_13); show_support.setText(R.string.show_support_13); show_support_desc.setText(R.string.show_support_desc_13); maintenance.setText(R.string.maintenance_13); @@ -10103,11 +10575,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_14); sub_text_2.setText(R.string.latest_14); sub_text_3.setText(R.string.latest_14); - sub_text_4.setText(R.string.latest_14); versions_1.setText(R.string.versions_14); versions_2.setText(R.string.versions_14); versions_3.setText(R.string.versions_14); - versions_4.setText(R.string.versions_14); title_sub.setText(R.string.manager_tools_14); source.setText(R.string.source_14); support.setText(R.string.support_14); @@ -10164,7 +10634,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_14); hide_amoled_patched.setText(R.string.hide_amoled_patched_14); hide_lite_patched.setText(R.string.hide_lite_patched_14); - hide_wave_patched.setText(R.string.hide_wave_patched_14); show_support.setText(R.string.show_support_14); show_support_desc.setText(R.string.show_support_desc_14); maintenance.setText(R.string.maintenance_14); @@ -10223,11 +10692,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_15); sub_text_2.setText(R.string.latest_15); sub_text_3.setText(R.string.latest_15); - sub_text_4.setText(R.string.latest_15); versions_1.setText(R.string.versions_15); versions_2.setText(R.string.versions_15); versions_3.setText(R.string.versions_15); - versions_4.setText(R.string.versions_15); title_sub.setText(R.string.manager_tools_15); source.setText(R.string.source_15); support.setText(R.string.support_15); @@ -10284,7 +10751,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_15); hide_amoled_patched.setText(R.string.hide_amoled_patched_15); hide_lite_patched.setText(R.string.hide_lite_patched_15); - hide_wave_patched.setText(R.string.hide_wave_patched_15); show_support.setText(R.string.show_support_15); show_support_desc.setText(R.string.show_support_desc_15); maintenance.setText(R.string.maintenance_15); @@ -10343,11 +10809,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_16); sub_text_2.setText(R.string.latest_16); sub_text_3.setText(R.string.latest_16); - sub_text_4.setText(R.string.latest_16); versions_1.setText(R.string.versions_16); versions_2.setText(R.string.versions_16); versions_3.setText(R.string.versions_16); - versions_4.setText(R.string.versions_16); title_sub.setText(R.string.manager_tools_16); source.setText(R.string.source_16); support.setText(R.string.support_16); @@ -10404,7 +10868,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_16); hide_amoled_patched.setText(R.string.hide_amoled_patched_16); hide_lite_patched.setText(R.string.hide_lite_patched_16); - hide_wave_patched.setText(R.string.hide_wave_patched_16); show_support.setText(R.string.show_support_16); show_support_desc.setText(R.string.show_support_desc_16); maintenance.setText(R.string.maintenance_16); @@ -10463,11 +10926,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_17); sub_text_2.setText(R.string.latest_17); sub_text_3.setText(R.string.latest_17); - sub_text_4.setText(R.string.latest_17); versions_1.setText(R.string.versions_17); versions_2.setText(R.string.versions_17); versions_3.setText(R.string.versions_17); - versions_4.setText(R.string.versions_17); title_sub.setText(R.string.manager_tools_17); source.setText(R.string.source_17); support.setText(R.string.support_17); @@ -10524,7 +10985,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_17); hide_amoled_patched.setText(R.string.hide_amoled_patched_17); hide_lite_patched.setText(R.string.hide_lite_patched_17); - hide_wave_patched.setText(R.string.hide_wave_patched_17); show_support.setText(R.string.show_support_17); show_support_desc.setText(R.string.show_support_desc_17); maintenance.setText(R.string.maintenance_17); @@ -10583,11 +11043,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_18); sub_text_2.setText(R.string.latest_18); sub_text_3.setText(R.string.latest_18); - sub_text_4.setText(R.string.latest_18); versions_1.setText(R.string.versions_18); versions_2.setText(R.string.versions_18); versions_3.setText(R.string.versions_18); - versions_4.setText(R.string.versions_18); title_sub.setText(R.string.manager_tools_18); source.setText(R.string.source_18); support.setText(R.string.support_18); @@ -10644,7 +11102,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_18); hide_amoled_patched.setText(R.string.hide_amoled_patched_18); hide_lite_patched.setText(R.string.hide_lite_patched_18); - hide_wave_patched.setText(R.string.hide_wave_patched_18); show_support.setText(R.string.show_support_18); show_support_desc.setText(R.string.show_support_desc_18); maintenance.setText(R.string.maintenance_18); @@ -10703,11 +11160,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_19); sub_text_2.setText(R.string.latest_19); sub_text_3.setText(R.string.latest_19); - sub_text_4.setText(R.string.latest_19); versions_1.setText(R.string.versions_19); versions_2.setText(R.string.versions_19); versions_3.setText(R.string.versions_19); - versions_4.setText(R.string.versions_19); title_sub.setText(R.string.manager_tools_19); source.setText(R.string.source_19); support.setText(R.string.support_19); @@ -10764,7 +11219,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_19); hide_amoled_patched.setText(R.string.hide_amoled_patched_19); hide_lite_patched.setText(R.string.hide_lite_patched_19); - hide_wave_patched.setText(R.string.hide_wave_patched_19); show_support.setText(R.string.show_support_19); show_support_desc.setText(R.string.show_support_desc_19); maintenance.setText(R.string.maintenance_19); @@ -10823,11 +11277,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_20); sub_text_2.setText(R.string.latest_20); sub_text_3.setText(R.string.latest_20); - sub_text_4.setText(R.string.latest_20); versions_1.setText(R.string.versions_20); versions_2.setText(R.string.versions_20); versions_3.setText(R.string.versions_20); - versions_4.setText(R.string.versions_20); title_sub.setText(R.string.manager_tools_20); source.setText(R.string.source_20); support.setText(R.string.support_20); @@ -10884,7 +11336,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_20); hide_amoled_patched.setText(R.string.hide_amoled_patched_20); hide_lite_patched.setText(R.string.hide_lite_patched_20); - hide_wave_patched.setText(R.string.hide_wave_patched_20); show_support.setText(R.string.show_support_20); show_support_desc.setText(R.string.show_support_desc_20); maintenance.setText(R.string.maintenance_20); @@ -10943,11 +11394,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_21); sub_text_2.setText(R.string.latest_21); sub_text_3.setText(R.string.latest_21); - sub_text_4.setText(R.string.latest_21); versions_1.setText(R.string.versions_21); versions_2.setText(R.string.versions_21); versions_3.setText(R.string.versions_21); - versions_4.setText(R.string.versions_21); title_sub.setText(R.string.manager_tools_21); source.setText(R.string.source_21); support.setText(R.string.support_21); @@ -11004,7 +11453,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_21); hide_amoled_patched.setText(R.string.hide_amoled_patched_21); hide_lite_patched.setText(R.string.hide_lite_patched_21); - hide_wave_patched.setText(R.string.hide_wave_patched_21); show_support.setText(R.string.show_support_21); show_support_desc.setText(R.string.show_support_desc_21); maintenance.setText(R.string.maintenance_21); @@ -11063,11 +11511,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_22); sub_text_2.setText(R.string.latest_22); sub_text_3.setText(R.string.latest_22); - sub_text_4.setText(R.string.latest_22); versions_1.setText(R.string.versions_22); versions_2.setText(R.string.versions_22); versions_3.setText(R.string.versions_22); - versions_4.setText(R.string.versions_22); title_sub.setText(R.string.manager_tools_22); source.setText(R.string.source_22); support.setText(R.string.support_22); @@ -11124,7 +11570,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_22); hide_amoled_patched.setText(R.string.hide_amoled_patched_22); hide_lite_patched.setText(R.string.hide_lite_patched_22); - hide_wave_patched.setText(R.string.hide_wave_patched_22); show_support.setText(R.string.show_support_22); show_support_desc.setText(R.string.show_support_desc_22); maintenance.setText(R.string.maintenance_22); @@ -11183,11 +11628,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_23); sub_text_2.setText(R.string.latest_23); sub_text_3.setText(R.string.latest_23); - sub_text_4.setText(R.string.latest_23); versions_1.setText(R.string.versions_23); versions_2.setText(R.string.versions_23); versions_3.setText(R.string.versions_23); - versions_4.setText(R.string.versions_23); title_sub.setText(R.string.manager_tools_23); source.setText(R.string.source_23); support.setText(R.string.support_23); @@ -11244,7 +11687,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_23); hide_amoled_patched.setText(R.string.hide_amoled_patched_23); hide_lite_patched.setText(R.string.hide_lite_patched_23); - hide_wave_patched.setText(R.string.hide_wave_patched_23); show_support.setText(R.string.show_support_23); show_support_desc.setText(R.string.show_support_desc_23); maintenance.setText(R.string.maintenance_23); @@ -11303,11 +11745,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_24); sub_text_2.setText(R.string.latest_24); sub_text_3.setText(R.string.latest_24); - sub_text_4.setText(R.string.latest_24); versions_1.setText(R.string.versions_24); versions_2.setText(R.string.versions_24); versions_3.setText(R.string.versions_24); - versions_4.setText(R.string.versions_24); title_sub.setText(R.string.manager_tools_24); source.setText(R.string.source_24); support.setText(R.string.support_24); @@ -11364,7 +11804,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_24); hide_amoled_patched.setText(R.string.hide_amoled_patched_24); hide_lite_patched.setText(R.string.hide_lite_patched_24); - hide_wave_patched.setText(R.string.hide_wave_patched_24); show_support.setText(R.string.show_support_24); show_support_desc.setText(R.string.show_support_desc_24); maintenance.setText(R.string.maintenance_24); @@ -11423,11 +11862,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_25); sub_text_2.setText(R.string.latest_25); sub_text_3.setText(R.string.latest_25); - sub_text_4.setText(R.string.latest_25); versions_1.setText(R.string.versions_25); versions_2.setText(R.string.versions_25); versions_3.setText(R.string.versions_25); - versions_4.setText(R.string.versions_25); title_sub.setText(R.string.manager_tools_25); source.setText(R.string.source_25); support.setText(R.string.support_25); @@ -11484,7 +11921,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_25); hide_amoled_patched.setText(R.string.hide_amoled_patched_25); hide_lite_patched.setText(R.string.hide_lite_patched_25); - hide_wave_patched.setText(R.string.hide_wave_patched_25); show_support.setText(R.string.show_support_25); show_support_desc.setText(R.string.show_support_desc_25); maintenance.setText(R.string.maintenance_25); @@ -11543,11 +11979,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_26); sub_text_2.setText(R.string.latest_26); sub_text_3.setText(R.string.latest_26); - sub_text_4.setText(R.string.latest_26); versions_1.setText(R.string.versions_26); versions_2.setText(R.string.versions_26); versions_3.setText(R.string.versions_26); - versions_4.setText(R.string.versions_26); title_sub.setText(R.string.manager_tools_26); source.setText(R.string.source_26); support.setText(R.string.support_26); @@ -11604,7 +12038,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_26); hide_amoled_patched.setText(R.string.hide_amoled_patched_26); hide_lite_patched.setText(R.string.hide_lite_patched_26); - hide_wave_patched.setText(R.string.hide_wave_patched_26); show_support.setText(R.string.show_support_26); show_support_desc.setText(R.string.show_support_desc_26); maintenance.setText(R.string.maintenance_26); @@ -11663,11 +12096,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_27); sub_text_2.setText(R.string.latest_27); sub_text_3.setText(R.string.latest_27); - sub_text_4.setText(R.string.latest_27); versions_1.setText(R.string.versions_27); versions_2.setText(R.string.versions_27); versions_3.setText(R.string.versions_27); - versions_4.setText(R.string.versions_27); title_sub.setText(R.string.manager_tools_27); source.setText(R.string.source_27); support.setText(R.string.support_27); @@ -11724,7 +12155,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_27); hide_amoled_patched.setText(R.string.hide_amoled_patched_27); hide_lite_patched.setText(R.string.hide_lite_patched_27); - hide_wave_patched.setText(R.string.hide_wave_patched_27); show_support.setText(R.string.show_support_27); show_support_desc.setText(R.string.show_support_desc_27); maintenance.setText(R.string.maintenance_27); @@ -11783,11 +12213,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_28); sub_text_2.setText(R.string.latest_28); sub_text_3.setText(R.string.latest_28); - sub_text_4.setText(R.string.latest_28); versions_1.setText(R.string.versions_28); versions_2.setText(R.string.versions_28); versions_3.setText(R.string.versions_28); - versions_4.setText(R.string.versions_28); title_sub.setText(R.string.manager_tools_28); source.setText(R.string.source_28); support.setText(R.string.support_28); @@ -11844,7 +12272,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_28); hide_amoled_patched.setText(R.string.hide_amoled_patched_28); hide_lite_patched.setText(R.string.hide_lite_patched_28); - hide_wave_patched.setText(R.string.hide_wave_patched_28); show_support.setText(R.string.show_support_28); show_support_desc.setText(R.string.show_support_desc_28); maintenance.setText(R.string.maintenance_28); @@ -11903,11 +12330,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_29); sub_text_2.setText(R.string.latest_29); sub_text_3.setText(R.string.latest_29); - sub_text_4.setText(R.string.latest_29); versions_1.setText(R.string.versions_29); versions_2.setText(R.string.versions_29); versions_3.setText(R.string.versions_29); - versions_4.setText(R.string.versions_29); title_sub.setText(R.string.manager_tools_29); source.setText(R.string.source_29); support.setText(R.string.support_29); @@ -11964,7 +12389,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_29); hide_amoled_patched.setText(R.string.hide_amoled_patched_29); hide_lite_patched.setText(R.string.hide_lite_patched_29); - hide_wave_patched.setText(R.string.hide_wave_patched_29); show_support.setText(R.string.show_support_29); show_support_desc.setText(R.string.show_support_desc_29); maintenance.setText(R.string.maintenance_29); @@ -12023,11 +12447,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_30); sub_text_2.setText(R.string.latest_30); sub_text_3.setText(R.string.latest_30); - sub_text_4.setText(R.string.latest_30); versions_1.setText(R.string.versions_30); versions_2.setText(R.string.versions_30); versions_3.setText(R.string.versions_30); - versions_4.setText(R.string.versions_30); title_sub.setText(R.string.manager_tools_30); source.setText(R.string.source_30); support.setText(R.string.support_30); @@ -12084,7 +12506,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_30); hide_amoled_patched.setText(R.string.hide_amoled_patched_30); hide_lite_patched.setText(R.string.hide_lite_patched_30); - hide_wave_patched.setText(R.string.hide_wave_patched_30); show_support.setText(R.string.show_support_30); show_support_desc.setText(R.string.show_support_desc_30); maintenance.setText(R.string.maintenance_30); @@ -12143,11 +12564,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_31); sub_text_2.setText(R.string.latest_31); sub_text_3.setText(R.string.latest_31); - sub_text_4.setText(R.string.latest_31); versions_1.setText(R.string.versions_31); versions_2.setText(R.string.versions_31); versions_3.setText(R.string.versions_31); - versions_4.setText(R.string.versions_31); title_sub.setText(R.string.manager_tools_31); source.setText(R.string.source_31); support.setText(R.string.support_31); @@ -12204,7 +12623,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_31); hide_amoled_patched.setText(R.string.hide_amoled_patched_31); hide_lite_patched.setText(R.string.hide_lite_patched_31); - hide_wave_patched.setText(R.string.hide_wave_patched_31); show_support.setText(R.string.show_support_31); show_support_desc.setText(R.string.show_support_desc_31); maintenance.setText(R.string.maintenance_31); @@ -12263,11 +12681,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_32); sub_text_2.setText(R.string.latest_32); sub_text_3.setText(R.string.latest_32); - sub_text_4.setText(R.string.latest_32); versions_1.setText(R.string.versions_32); versions_2.setText(R.string.versions_32); versions_3.setText(R.string.versions_32); - versions_4.setText(R.string.versions_32); title_sub.setText(R.string.manager_tools_32); source.setText(R.string.source_32); support.setText(R.string.support_32); @@ -12324,7 +12740,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_32); hide_amoled_patched.setText(R.string.hide_amoled_patched_32); hide_lite_patched.setText(R.string.hide_lite_patched_32); - hide_wave_patched.setText(R.string.hide_wave_patched_32); show_support.setText(R.string.show_support_32); show_support_desc.setText(R.string.show_support_desc_32); maintenance.setText(R.string.maintenance_32); @@ -12383,11 +12798,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_33); sub_text_2.setText(R.string.latest_33); sub_text_3.setText(R.string.latest_33); - sub_text_4.setText(R.string.latest_33); versions_1.setText(R.string.versions_33); versions_2.setText(R.string.versions_33); versions_3.setText(R.string.versions_33); - versions_4.setText(R.string.versions_33); title_sub.setText(R.string.manager_tools_33); source.setText(R.string.source_33); support.setText(R.string.support_33); @@ -12444,7 +12857,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_33); hide_amoled_patched.setText(R.string.hide_amoled_patched_33); hide_lite_patched.setText(R.string.hide_lite_patched_33); - hide_wave_patched.setText(R.string.hide_wave_patched_33); show_support.setText(R.string.show_support_33); show_support_desc.setText(R.string.show_support_desc_33); maintenance.setText(R.string.maintenance_33); @@ -12503,11 +12915,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_34); sub_text_2.setText(R.string.latest_34); sub_text_3.setText(R.string.latest_34); - sub_text_4.setText(R.string.latest_34); versions_1.setText(R.string.versions_34); versions_2.setText(R.string.versions_34); versions_3.setText(R.string.versions_34); - versions_4.setText(R.string.versions_34); title_sub.setText(R.string.manager_tools_34); source.setText(R.string.source_34); support.setText(R.string.support_34); @@ -12564,7 +12974,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_34); hide_amoled_patched.setText(R.string.hide_amoled_patched_34); hide_lite_patched.setText(R.string.hide_lite_patched_34); - hide_wave_patched.setText(R.string.hide_wave_patched_34); show_support.setText(R.string.show_support_34); show_support_desc.setText(R.string.show_support_desc_34); maintenance.setText(R.string.maintenance_34); @@ -12623,11 +13032,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_35); sub_text_2.setText(R.string.latest_35); sub_text_3.setText(R.string.latest_35); - sub_text_4.setText(R.string.latest_35); versions_1.setText(R.string.versions_35); versions_2.setText(R.string.versions_35); versions_3.setText(R.string.versions_35); - versions_4.setText(R.string.versions_35); title_sub.setText(R.string.manager_tools_35); source.setText(R.string.source_35); support.setText(R.string.support_35); @@ -12684,7 +13091,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_35); hide_amoled_patched.setText(R.string.hide_amoled_patched_35); hide_lite_patched.setText(R.string.hide_lite_patched_35); - hide_wave_patched.setText(R.string.hide_wave_patched_35); show_support.setText(R.string.show_support_35); show_support_desc.setText(R.string.show_support_desc_35); maintenance.setText(R.string.maintenance_35); @@ -12743,11 +13149,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_36); sub_text_2.setText(R.string.latest_36); sub_text_3.setText(R.string.latest_36); - sub_text_4.setText(R.string.latest_36); versions_1.setText(R.string.versions_36); versions_2.setText(R.string.versions_36); versions_3.setText(R.string.versions_36); - versions_4.setText(R.string.versions_36); title_sub.setText(R.string.manager_tools_36); source.setText(R.string.source_36); support.setText(R.string.support_36); @@ -12804,7 +13208,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_36); hide_amoled_patched.setText(R.string.hide_amoled_patched_36); hide_lite_patched.setText(R.string.hide_lite_patched_36); - hide_wave_patched.setText(R.string.hide_wave_patched_36); show_support.setText(R.string.show_support_36); show_support_desc.setText(R.string.show_support_desc_36); maintenance.setText(R.string.maintenance_36); @@ -12863,11 +13266,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_37); sub_text_2.setText(R.string.latest_37); sub_text_3.setText(R.string.latest_37); - sub_text_4.setText(R.string.latest_37); versions_1.setText(R.string.versions_37); versions_2.setText(R.string.versions_37); versions_3.setText(R.string.versions_37); - versions_4.setText(R.string.versions_37); title_sub.setText(R.string.manager_tools_37); source.setText(R.string.source_37); support.setText(R.string.support_37); @@ -12924,7 +13325,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_37); hide_amoled_patched.setText(R.string.hide_amoled_patched_37); hide_lite_patched.setText(R.string.hide_lite_patched_37); - hide_wave_patched.setText(R.string.hide_wave_patched_37); show_support.setText(R.string.show_support_37); show_support_desc.setText(R.string.show_support_desc_37); maintenance.setText(R.string.maintenance_37); @@ -12983,11 +13383,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_38); sub_text_2.setText(R.string.latest_38); sub_text_3.setText(R.string.latest_38); - sub_text_4.setText(R.string.latest_38); versions_1.setText(R.string.versions_38); versions_2.setText(R.string.versions_38); versions_3.setText(R.string.versions_38); - versions_4.setText(R.string.versions_38); title_sub.setText(R.string.manager_tools_38); source.setText(R.string.source_38); support.setText(R.string.support_38); @@ -13044,7 +13442,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_38); hide_amoled_patched.setText(R.string.hide_amoled_patched_38); hide_lite_patched.setText(R.string.hide_lite_patched_38); - hide_wave_patched.setText(R.string.hide_wave_patched_38); show_support.setText(R.string.show_support_38); show_support_desc.setText(R.string.show_support_desc_38); maintenance.setText(R.string.maintenance_38); @@ -13103,11 +13500,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_39); sub_text_2.setText(R.string.latest_39); sub_text_3.setText(R.string.latest_39); - sub_text_4.setText(R.string.latest_39); versions_1.setText(R.string.versions_39); versions_2.setText(R.string.versions_39); versions_3.setText(R.string.versions_39); - versions_4.setText(R.string.versions_39); title_sub.setText(R.string.manager_tools_39); source.setText(R.string.source_39); support.setText(R.string.support_39); @@ -13164,7 +13559,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_39); hide_amoled_patched.setText(R.string.hide_amoled_patched_39); hide_lite_patched.setText(R.string.hide_lite_patched_39); - hide_wave_patched.setText(R.string.hide_wave_patched_39); show_support.setText(R.string.show_support_39); show_support_desc.setText(R.string.show_support_desc_39); maintenance.setText(R.string.maintenance_39); @@ -13223,11 +13617,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_40); sub_text_2.setText(R.string.latest_40); sub_text_3.setText(R.string.latest_40); - sub_text_4.setText(R.string.latest_40); versions_1.setText(R.string.versions_40); versions_2.setText(R.string.versions_40); versions_3.setText(R.string.versions_40); - versions_4.setText(R.string.versions_40); title_sub.setText(R.string.manager_tools_40); source.setText(R.string.source_40); support.setText(R.string.support_40); @@ -13284,7 +13676,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_40); hide_amoled_patched.setText(R.string.hide_amoled_patched_40); hide_lite_patched.setText(R.string.hide_lite_patched_40); - hide_wave_patched.setText(R.string.hide_wave_patched_40); show_support.setText(R.string.show_support_40); show_support_desc.setText(R.string.show_support_desc_40); maintenance.setText(R.string.maintenance_40); @@ -13343,11 +13734,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_41); sub_text_2.setText(R.string.latest_41); sub_text_3.setText(R.string.latest_41); - sub_text_4.setText(R.string.latest_41); versions_1.setText(R.string.versions_41); versions_2.setText(R.string.versions_41); versions_3.setText(R.string.versions_41); - versions_4.setText(R.string.versions_41); title_sub.setText(R.string.manager_tools_41); source.setText(R.string.source_41); support.setText(R.string.support_41); @@ -13404,7 +13793,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_41); hide_amoled_patched.setText(R.string.hide_amoled_patched_41); hide_lite_patched.setText(R.string.hide_lite_patched_41); - hide_wave_patched.setText(R.string.hide_wave_patched_41); show_support.setText(R.string.show_support_41); show_support_desc.setText(R.string.show_support_desc_41); maintenance.setText(R.string.maintenance_41); @@ -13463,11 +13851,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_42); sub_text_2.setText(R.string.latest_42); sub_text_3.setText(R.string.latest_42); - sub_text_4.setText(R.string.latest_42); versions_1.setText(R.string.versions_42); versions_2.setText(R.string.versions_42); versions_3.setText(R.string.versions_42); - versions_4.setText(R.string.versions_42); title_sub.setText(R.string.manager_tools_42); source.setText(R.string.source_42); support.setText(R.string.support_42); @@ -13524,7 +13910,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_42); hide_amoled_patched.setText(R.string.hide_amoled_patched_42); hide_lite_patched.setText(R.string.hide_lite_patched_42); - hide_wave_patched.setText(R.string.hide_wave_patched_42); show_support.setText(R.string.show_support_42); show_support_desc.setText(R.string.show_support_desc_42); maintenance.setText(R.string.maintenance_42); @@ -13583,11 +13968,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest_43); sub_text_2.setText(R.string.latest_43); sub_text_3.setText(R.string.latest_43); - sub_text_4.setText(R.string.latest_43); versions_1.setText(R.string.versions_43); versions_2.setText(R.string.versions_43); versions_3.setText(R.string.versions_43); - versions_4.setText(R.string.versions_43); title_sub.setText(R.string.manager_tools_43); source.setText(R.string.source_43); support.setText(R.string.support_43); @@ -13644,7 +14027,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched_43); hide_amoled_patched.setText(R.string.hide_amoled_patched_43); hide_lite_patched.setText(R.string.hide_lite_patched_43); - hide_wave_patched.setText(R.string.hide_wave_patched_43); show_support.setText(R.string.show_support_43); show_support_desc.setText(R.string.show_support_desc_43); maintenance.setText(R.string.maintenance_43); @@ -13819,6 +14201,13 @@ public class MainActivity extends AppCompatActivity { Theme.add("White"); Theme.add("Brown"); Theme.add("Indigo"); + Theme.add("Light Green"); + Theme.add("Light Blue"); + Theme.add("Light Red"); + Theme.add("Light Orange"); + Theme.add("Light Pink"); + Theme.add("Light Purple"); + Theme.add("Light Cyan"); select_theme.setAdapter(new ArrayAdapter(getBaseContext(), android.R.layout.simple_spinner_dropdown_item, Theme)); ((ArrayAdapter)select_theme.getAdapter()).notifyDataSetChanged(); select_theme.setAdapter(new ArrayAdapter(this, android.R.layout.simple_list_item_1, android.R.id.text1, Theme) { @@ -13850,11 +14239,9 @@ public class MainActivity extends AppCompatActivity { sub_text_1.setText(R.string.latest); sub_text_2.setText(R.string.latest); sub_text_3.setText(R.string.latest); - sub_text_4.setText(R.string.latest); versions_1.setText(R.string.versions); versions_2.setText(R.string.versions); versions_3.setText(R.string.versions); - versions_4.setText(R.string.versions); title_sub.setText(R.string.manager_tools); source.setText(R.string.source); support.setText(R.string.support); @@ -13911,7 +14298,6 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setText(R.string.hide_stock_patched); hide_amoled_patched.setText(R.string.hide_amoled_patched); hide_lite_patched.setText(R.string.hide_lite_patched); - hide_wave_patched.setText(R.string.hide_wave_patched); show_support.setText(R.string.show_support); show_support_desc.setText(R.string.show_support_desc); maintenance.setText(R.string.maintenance); @@ -14068,28 +14454,24 @@ public class MainActivity extends AppCompatActivity { c = null; Animation d; d = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left); - d.setDuration(500); main_box_12.startAnimation(d); + d.setDuration(500); main_box_19.startAnimation(d); d = null; Animation e; e = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left); - e.setDuration(600); main_box_19.startAnimation(e); + e.setDuration(600); main_box_6.startAnimation(e); e = null; Animation f; f = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left); - f.setDuration(700); main_box_6.startAnimation(f); + f.setDuration(700); box_sub_header.startAnimation(f); f = null; Animation g; g = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left); - g.setDuration(800); box_sub_header.startAnimation(g); + g.setDuration(800); main_box_4.startAnimation(g); g = null; Animation h; h = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left); - h.setDuration(900); main_box_4.startAnimation(h); + h.setDuration(900); main_box_15.startAnimation(h); h = null; - Animation i; - i = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left); - i.setDuration(1000); main_box_15.startAnimation(i); - i = null; } @@ -14121,15 +14503,6 @@ public class MainActivity extends AppCompatActivity { } }); - list_items_4.setOnScrollListener(new AbsListView.OnScrollListener() { - @Override public void onScrollStateChanged(AbsListView view, int scrollState) { - } - @Override public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { - int topRowVerticalPosition = (list_items_4 == null || list_items_4.getChildCount() == 0) ? 0 : list_items_4.getChildAt(0).getTop(); - main_refresh_layout.setEnabled(firstVisibleItem == 0 && topRowVerticalPosition >= 0); - } - }); - list_items_5.setOnScrollListener(new AbsListView.OnScrollListener() { @Override public void onScrollStateChanged(AbsListView view, int scrollState) { } @@ -14253,8 +14626,43 @@ public class MainActivity extends AppCompatActivity { final long downloadId = manager.enqueue(request); final ProgressDialog prog = new ProgressDialog(MainActivity.this, R.style.Progress_Dialog); final ProgressDialog check = new ProgressDialog(MainActivity.this, R.style.Progress_Dialog); - prog.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); - check.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); + if (THEME.getString("THEME", "").equals("14")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_green); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_green); + } else { + if (THEME.getString("THEME", "").equals("15")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_blue); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_blue); + } else { + if (THEME.getString("THEME", "").equals("16")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_red); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_red); + } else { + if (THEME.getString("THEME", "").equals("17")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_orange); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_orange);; + } else { + if (THEME.getString("THEME", "").equals("18")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_pink); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_pink); + } else { + if (THEME.getString("THEME", "").equals("19")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_purple); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_purple); + } else { + if (THEME.getString("THEME", "").equals("20")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_cyan); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_cyan); + } else { + prog.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); + check.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); + } + } + } + } + } + } + } Thread progress = new Thread() { @Override public void run() { @@ -14494,8 +14902,43 @@ public class MainActivity extends AppCompatActivity { final long downloadId = manager.enqueue(request); final ProgressDialog prog = new ProgressDialog(MainActivity.this, R.style.Progress_Dialog); final ProgressDialog check = new ProgressDialog(MainActivity.this, R.style.Progress_Dialog); - prog.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); - check.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); + if (THEME.getString("THEME", "").equals("14")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_green); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_green); + } else { + if (THEME.getString("THEME", "").equals("15")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_blue); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_blue); + } else { + if (THEME.getString("THEME", "").equals("16")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_red); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_red); + } else { + if (THEME.getString("THEME", "").equals("17")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_orange); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_orange);; + } else { + if (THEME.getString("THEME", "").equals("18")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_pink); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_pink); + } else { + if (THEME.getString("THEME", "").equals("19")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_purple); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_purple); + } else { + if (THEME.getString("THEME", "").equals("20")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_cyan); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_cyan); + } else { + prog.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); + check.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); + } + } + } + } + } + } + } Thread progress = new Thread() { @Override public void run() { @@ -14697,6 +15140,7 @@ public class MainActivity extends AppCompatActivity { public void run() { prog.dismiss(); check.dismiss(); + _Downgrade_Checker(); if ((Installed_Version_Cloned < Downloaded_Version_Cloned) || ((Downloaded_Version_Cloned > Installed_Version_Cloned) || ((Installed_Version_Cloned == Downloaded_Version_Cloned) || Installed_Checker_Cloned.equals("false")))) { if (getICSignature(getApplicationContext()).equals(getDCSignature(getApplicationContext())) || Installed_Checker_Cloned.equals("false")) { StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); StrictMode.setVmPolicy(builder.build()); @@ -14954,25 +15398,6 @@ public class MainActivity extends AppCompatActivity { Downloaded_Version_Lite = Installed_Version_Lite; } - String uri_wave = "com.aspiro.tidal"; - android.content.pm.PackageManager pm_wave = getPackageManager(); - - try { - android.content.pm.PackageInfo Installed_Wave = pm_lite.getPackageInfo(uri_wave, android.content.pm.PackageManager.GET_ACTIVITIES); - Installed_Version_Wave = Installed_Wave.versionCode; - } - catch (Exception e) { - } - - - try { - android.content.pm.PackageInfo Downloaded_Wave = this.getPackageManager().getPackageArchiveInfo(apk_path_location.getText().toString().concat("Patched Wave (xManager).apk"), PackageManager.GET_ACTIVITIES); - Downloaded_Version_Wave = Downloaded_Wave.versionCode; - } - catch (Exception e) { - Downloaded_Version_Wave = Installed_Version_Wave; - } - } @@ -15013,7 +15438,7 @@ public class MainActivity extends AppCompatActivity { }); AlertDialog = Update_Unauthorized.create(); AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); + _AlertDialog_Color(); AlertDialog.show(); } catch(Exception e) { @@ -15104,7 +15529,6 @@ public class MainActivity extends AppCompatActivity { Stock_Experimental_Cloned_Patched = (new Gson()).toJson(Datas.get("Stock_Experimental_Cloned_Patched"), new TypeToken>>(){}.getType()); Amoled_Experimental_Cloned_Patched = (new Gson()).toJson(Datas.get("Amoled_Experimental_Cloned_Patched"), new TypeToken>>(){}.getType()); Lite_Patched = (new Gson()).toJson(Datas.get("Lite_Patched"), new TypeToken>>(){}.getType()); - Wave_Patched = (new Gson()).toJson(Datas.get("Wave_Patched"), new TypeToken>>(){}.getType()); Patched_Changelogs = (new Gson()).toJson(Datas.get("Patched_Changelogs"), new TypeToken>>(){}.getType()); stock_patched = new Gson().fromJson(Stock_Patched, new TypeToken>>(){}.getType()); amoled_patched = new Gson().fromJson(Amoled_Patched, new TypeToken>>(){}.getType()); @@ -15115,7 +15539,6 @@ public class MainActivity extends AppCompatActivity { stock_experimental_cloned_patched = new Gson().fromJson(Stock_Experimental_Cloned_Patched, new TypeToken>>(){}.getType()); amoled_experimental_cloned_patched = new Gson().fromJson(Amoled_Experimental_Cloned_Patched, new TypeToken>>(){}.getType()); lite_patched = new Gson().fromJson(Lite_Patched, new TypeToken>>(){}.getType()); - wave_patched = new Gson().fromJson(Wave_Patched, new TypeToken>>(){}.getType()); patched_changelogs = new Gson().fromJson(Patched_Changelogs, new TypeToken>>(){}.getType()); sub_1.setText(Datas.get("Stock_Patched_Latest").toString()); sub_2.setText(Datas.get("Amoled_Patched_Latest").toString()); @@ -15126,7 +15549,6 @@ public class MainActivity extends AppCompatActivity { sub_7.setText(Datas.get("SECP_Latest").toString()); sub_8.setText(Datas.get("AECP_Latest").toString()); sub_9.setText(Datas.get("Lite_Patched_Latest").toString()); - sub_10.setText(Datas.get("Wave_Patched_Latest").toString()); donors_1.setText(Datas.get("Supporters").toString()); hidden_update.setText(Datas.get("Update").toString()); app_changelogs.setText(Datas.get("App_Changelogs").toString()); @@ -15164,10 +15586,8 @@ public class MainActivity extends AppCompatActivity { } } list_items_3.setAdapter(new List_items_3Adapter(lite_patched)); - list_items_4.setAdapter(new List_items_4Adapter(wave_patched)); list_items_5.setAdapter(new List_items_5Adapter(patched_changelogs)); ((BaseAdapter)list_items_3.getAdapter()).notifyDataSetChanged(); - ((BaseAdapter)list_items_4.getAdapter()).notifyDataSetChanged(); ((BaseAdapter)list_items_5.getAdapter()).notifyDataSetChanged(); if (INITIALIZATION.getString("INITIALIZATION", "").equals("X")) { _Updater(); @@ -15196,8 +15616,6 @@ public class MainActivity extends AppCompatActivity { title_1.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); title_2.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); title_3.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - title_4.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - title_5.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); title_6.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); sub_1.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); sub_2.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); @@ -15208,22 +15626,17 @@ public class MainActivity extends AppCompatActivity { sub_7.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); sub_8.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); sub_9.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - sub_10.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); sub_text_1.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); sub_text_2.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); sub_text_3.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - sub_text_4.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); versions_1.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); versions_2.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); versions_3.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - versions_4.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); sub_installed.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); sub_separator_1.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); sub_installed_c.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); sub_separator_2.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); sub_installed_l.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - sub_separator_3.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - sub_installed_w.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); sub_text_installed.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); title_sub.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); support.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); @@ -15270,7 +15683,6 @@ public class MainActivity extends AppCompatActivity { patched_1.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 0); patched_2.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 0); patched_3.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 0); - patched_4.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 0); title_header_beta.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); title_header_separator.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); experiment_version.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); @@ -15284,14 +15696,12 @@ public class MainActivity extends AppCompatActivity { hide_stock_patched.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); hide_amoled_patched.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); hide_lite_patched.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - hide_wave_patched.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); box_sub_header.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); main_box_1.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); main_box_2.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); main_box_3.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); main_box_5.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); main_box_6.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); - main_box_7.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); main_box_8.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); main_box_9.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); main_box_10.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); @@ -15325,9 +15735,6 @@ public class MainActivity extends AppCompatActivity { box_separator_2.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF616161)); box_separator_3.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF616161)); box_separator_4.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF616161)); - box_separator_5.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF616161)); - box_separator_6.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF616161)); - box_separator_7.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF616161)); box_separator_8.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF616161)); box_separator_9.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF616161)); sub_1.setVisibility(View.GONE); @@ -15342,7 +15749,6 @@ public class MainActivity extends AppCompatActivity { list_items_2.setVisibility(View.GONE); list_items_3.setVisibility(View.GONE); list_items_5.setVisibility(View.GONE); - list_items_4.setVisibility(View.GONE); if (!INITIALIZATION.getString("INITIALIZATION", "").equals("X")) { try { box_header.setVisibility(View.GONE); @@ -15536,7 +15942,6 @@ public class MainActivity extends AppCompatActivity { list_items_1.setVisibility(View.VISIBLE); list_items_2.setVisibility(View.GONE); list_items_3.setVisibility(View.GONE); - list_items_4.setVisibility(View.GONE); list_items_5.setVisibility(View.GONE); list_items_1.setAdapter(new List_items_1Adapter(stock_patched)); ((BaseAdapter)list_items_1.getAdapter()).notifyDataSetChanged(); @@ -15546,7 +15951,6 @@ public class MainActivity extends AppCompatActivity { list_items_1.setVisibility(View.VISIBLE); list_items_2.setVisibility(View.GONE); list_items_3.setVisibility(View.GONE); - list_items_4.setVisibility(View.GONE); list_items_5.setVisibility(View.GONE); list_items_1.setAdapter(new List_items_1Adapter(stock_cloned_patched)); ((BaseAdapter)list_items_1.getAdapter()).notifyDataSetChanged(); @@ -15556,7 +15960,6 @@ public class MainActivity extends AppCompatActivity { list_items_1.setVisibility(View.VISIBLE); list_items_2.setVisibility(View.GONE); list_items_3.setVisibility(View.GONE); - list_items_4.setVisibility(View.GONE); list_items_5.setVisibility(View.GONE); list_items_1.setAdapter(new List_items_1Adapter(stock_experimental_patched)); ((BaseAdapter)list_items_1.getAdapter()).notifyDataSetChanged(); @@ -15566,1635 +15969,385 @@ public class MainActivity extends AppCompatActivity { list_items_1.setVisibility(View.VISIBLE); list_items_2.setVisibility(View.GONE); list_items_3.setVisibility(View.GONE); - list_items_4.setVisibility(View.GONE); list_items_5.setVisibility(View.GONE); list_items_1.setAdapter(new List_items_1Adapter(stock_experimental_cloned_patched)); ((BaseAdapter)list_items_1.getAdapter()).notifyDataSetChanged(); } - } - } - } - Animation animation; - animation = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.fade_in); - animation.setDuration(500); version_oc_01.startAnimation(animation); - animation = null; - version_oc_01.setImageResource(R.drawable.open); - version_oc_02.setImageResource(R.drawable.close); - version_oc_03.setImageResource(R.drawable.close); - version_oc_04.setImageResource(R.drawable.close); - changelogs_oc.setImageResource(R.drawable.close); - Timer = new TimerTask() { - @Override - public void run() { - runOnUiThread(new Runnable() { - @Override - public void run() { - if (SWITCH_VERSION.getString("SWITCH", "").equals("A")) { - list_items_1.setVisibility(View.GONE); - list_items_2.setVisibility(View.VISIBLE); - list_items_3.setVisibility(View.GONE); - list_items_4.setVisibility(View.GONE); - list_items_5.setVisibility(View.GONE); - list_items_2.setAdapter(new List_items_2Adapter(amoled_patched)); - ((BaseAdapter)list_items_2.getAdapter()).notifyDataSetChanged(); - } - else { - if (SWITCH_VERSION.getString("SWITCH", "").equals("B")) { - list_items_1.setVisibility(View.GONE); - list_items_2.setVisibility(View.VISIBLE); - list_items_3.setVisibility(View.GONE); - list_items_4.setVisibility(View.GONE); - list_items_5.setVisibility(View.GONE); - list_items_2.setAdapter(new List_items_2Adapter(amoled_cloned_patched)); - ((BaseAdapter)list_items_2.getAdapter()).notifyDataSetChanged(); - } - else { - if (SWITCH_VERSION.getString("SWITCH", "").equals("C")) { - list_items_1.setVisibility(View.GONE); - list_items_2.setVisibility(View.VISIBLE); - list_items_3.setVisibility(View.GONE); - list_items_4.setVisibility(View.GONE); - list_items_5.setVisibility(View.GONE); - list_items_2.setAdapter(new List_items_2Adapter(amoled_experimental_patched)); - ((BaseAdapter)list_items_2.getAdapter()).notifyDataSetChanged(); - } - else { - if (SWITCH_VERSION.getString("SWITCH", "").equals("D")) { - list_items_1.setVisibility(View.GONE); - list_items_2.setVisibility(View.VISIBLE); - list_items_3.setVisibility(View.GONE); - list_items_4.setVisibility(View.GONE); - list_items_5.setVisibility(View.GONE); - list_items_2.setAdapter(new List_items_2Adapter(amoled_experimental_cloned_patched)); - ((BaseAdapter)list_items_2.getAdapter()).notifyDataSetChanged(); - } - } - } - } - Animation animation; - animation = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.fade_in); - animation.setDuration(500); version_oc_02.startAnimation(animation); - animation = null; - version_oc_01.setImageResource(R.drawable.close); - version_oc_02.setImageResource(R.drawable.open); - version_oc_03.setImageResource(R.drawable.close); - version_oc_04.setImageResource(R.drawable.close); - changelogs_oc.setImageResource(R.drawable.close); - Timer = new TimerTask() { - @Override - public void run() { - runOnUiThread(new Runnable() { - @Override - public void run() { - Animation animation; - animation = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.fade_in); - animation.setDuration(500); version_oc_03.startAnimation(animation); - animation = null; - list_items_1.setVisibility(View.GONE); - list_items_2.setVisibility(View.GONE); - list_items_3.setVisibility(View.VISIBLE); - list_items_4.setVisibility(View.GONE); - list_items_5.setVisibility(View.GONE); - version_oc_01.setImageResource(R.drawable.close); - version_oc_02.setImageResource(R.drawable.close); - version_oc_03.setImageResource(R.drawable.open); - version_oc_04.setImageResource(R.drawable.close); - changelogs_oc.setImageResource(R.drawable.close); - list_items_3.setAdapter(new List_items_3Adapter(lite_patched)); - ((BaseAdapter)list_items_3.getAdapter()).notifyDataSetChanged(); - Timer = new TimerTask() { - @Override - public void run() { - runOnUiThread(new Runnable() { - @Override - public void run() { - Animation animation; - animation = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.fade_in); - animation.setDuration(500); changelogs_oc.startAnimation(animation); - animation = null; - list_items_1.setVisibility(View.GONE); - list_items_2.setVisibility(View.GONE); - list_items_3.setVisibility(View.GONE); - list_items_4.setVisibility(View.GONE); - list_items_5.setVisibility(View.VISIBLE); - version_oc_01.setImageResource(R.drawable.close); - version_oc_02.setImageResource(R.drawable.close); - version_oc_03.setImageResource(R.drawable.close); - version_oc_04.setImageResource(R.drawable.close); - changelogs_oc.setImageResource(R.drawable.open); - list_items_5.setAdapter(new List_items_5Adapter(patched_changelogs)); - ((BaseAdapter)list_items_5.getAdapter()).notifyDataSetChanged(); - Timer = new TimerTask() { - @Override - public void run() { - runOnUiThread(new Runnable() { - @Override - public void run() { - main_refresh_layout.setRefreshing(false); - list_items_1.setVisibility(View.GONE); - list_items_2.setVisibility(View.GONE); - list_items_3.setVisibility(View.GONE); - list_items_4.setVisibility(View.GONE); - list_items_5.setVisibility(View.GONE); - version_oc_01.setImageResource(R.drawable.close); - version_oc_02.setImageResource(R.drawable.close); - version_oc_03.setImageResource(R.drawable.close); - version_oc_04.setImageResource(R.drawable.close); - changelogs_oc.setImageResource(R.drawable.close); - main_body.setAlpha((float)(1.0d)); - String currentDateTimeString = java.text.DateFormat.getDateTimeInstance().format(new Date()); - - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Data List Updated | " + (currentDateTimeString), com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); - } - }); - } - }; - _timer.schedule(Timer, (int)(700)); - } - }); - } - }; - _timer.schedule(Timer, (int)(600)); - } - }); - } - }; - _timer.schedule(Timer, (int)(500)); - } - }); - } - }; - _timer.schedule(Timer, (int)(500)); - } - }); - } - }; - _timer.schedule(Timer, (int)(400)); - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Refreshing Data List...", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); - main_body.setAlpha((float)(0.50d)); - _Animation_3(); - _Clickers(); - } - catch(Exception e) { - } - } - }); - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { - CharSequence name = "Null"; - String description = "Null"; - int importance = NotificationManager.IMPORTANCE_MAX; - NotificationChannel channel = new NotificationChannel("id 1", name, importance); - channel.setDescription(description); - - NotificationManager notificationManager = getSystemService(NotificationManager.class); - notificationManager.createNotificationChannel(channel); - } - - apk_path_location.setText(APK_PATH.getString("PATH", "")); - Timer = new TimerTask() { - @Override - public void run() { - runOnUiThread(new Runnable() { - @Override - public void run() { - Timer = new TimerTask() { - @Override - public void run() { - runOnUiThread(new Runnable() { - @Override - public void run() { - _Downgrade_Checker(); - } - }); - } - }; - _timer.schedule(Timer, (int)(75)); - } - }); - } - }; - _timer.scheduleAtFixedRate(Timer, (int)(0), (int)(150)); - CHECK = 0; - _Rewarded_AdMob(); - _Layout_Transition(); - _Update_Remover(); - _Language_Fixer(); - _Hide_Patched(); - _Switch_Fixer(); - _Language_UI(); - _List_Updater(); - _Scroll_Fixed(); - _Ads_AdMob(); - _Theme_UI(); - _Clickers(); - _Effects(); - _Extra(); - } - - - public void _API_Token() { - main_refresh_layout.setRefreshing(true); - if (SketchwareUtil.isConnected(getApplicationContext())) { - try { - Current_Version = Double.parseDouble(local_version.getText().toString()); - Latest_Version = Double.parseDouble(Datas.get("Server").toString()); - } catch (Exception e) { - } - Timer = new TimerTask() { - @Override - public void run() { - runOnUiThread(new Runnable() { - @Override - public void run() { - if (Latest_Version < Current_Version) { - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "API Token Expired", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); - main_refresh_layout.setRefreshing(false); - main_body.setAlpha((float)(1.0d)); - } - else { - if (Latest_Version > Current_Version) { - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "New Update Available", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); - main_refresh_layout.setRefreshing(false); - main_body.setAlpha((float)(1.0d)); - } - else { - if (!list_auto_refresh_switch.isChecked()) { - String currentDateTimeString = java.text.DateFormat.getDateTimeInstance().format(new Date()); - - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "API Updated | " + (currentDateTimeString), com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); - main_refresh_layout.setRefreshing(false); - main_body.setAlpha((float)(1.0d)); - } - } - } - } - }); - } - }; - _timer.schedule(Timer, (int)(500)); - } - else { - Timer = new TimerTask() { - @Override - public void run() { - runOnUiThread(new Runnable() { - @Override - public void run() { - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "API Update Failed", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); - main_refresh_layout.setRefreshing(false); - main_body.setAlpha((float)(1.0d)); - } - }); - } - }; - _timer.schedule(Timer, (int)(500)); - } - } - - - public void _Clickers() { - CLICKER_1 = 1; - CLICKER_2 = 1; - CLICKER_3 = 1; - CLICKER_4 = 1; - CLICKER_5 = 1; - } - - - public void _Extension_1() { - final AlertDialog.Builder Success_Download = new AlertDialog.Builder(MainActivity.this, R.style.Other_Dialog); - String Title = "".concat(download_success_0.concat("")); - String TitleColor = "1DB954"; - Success_Download.setTitle(Html.fromHtml(""+Title+"")); - Success_Download.setPositiveButton(install_now_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Success_Download, int p) { - AlertDialog.setCancelable(true); - if ((Installed_Version < Downloaded_Version) || ((Downloaded_Version > Installed_Version) || ((Installed_Version == Downloaded_Version) || Installed_Checker.equals("false")))) { - if (getISignature(getApplicationContext()).equals(getDSignature(getApplicationContext())) || Installed_Checker.equals("false")) { - StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); StrictMode.setVmPolicy(builder.build()); - if(android.os.Build.VERSION.SDK_INT >= 29){ - try { - Intent intent = new Intent(Intent.ACTION_VIEW); - intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); - intent.setDataAndType(FileProvider.getUriForFile(MainActivity.this, "com.xc3fff0e.xmanager.provider", new File("/storage/emulated/0/Download/Patched (xManager).apk")), "application/vnd.android.package-archive"); - startActivity(intent); - _Reminder(); - } - catch(Exception e) { - } - } else { - try { - Intent intent = new Intent(Intent.ACTION_VIEW); - intent.setDataAndType(Uri.fromFile(new File("/storage/emulated/0/Download/Patched (xManager).apk")), "application/vnd.android.package-archive"); - startActivity(intent); - _Reminder(); - } - catch(Exception e) { - } - } - } else { - if (!MainActivity.this.isFinishing()) { - final AlertDialog.Builder Signature_Check = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); - String Title = "".concat(installation_failed_0.concat("")); - String TitleColor = "1DB954"; - Signature_Check.setTitle(Html.fromHtml(""+Title+"")); - String Message = installation_failed_spap_desc_0.replace("\n", "
"); - String MessageColor = "FFFFFF"; - Signature_Check.setMessage(Html.fromHtml(""+Message+"")); - Signature_Check.setPositiveButton(uninstall_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Signature_Check, int p) { - AlertDialog.setCancelable(true); - try { - Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.music")); - startActivity(intent); - } - catch(Exception e) { - } - } - }); - Signature_Check.setNeutralButton(close_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Signature_Check, int p) { - AlertDialog.setCancelable(true); - } - }); - AlertDialog = Signature_Check.create(); - AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); - AlertDialog.show(); - } - } - } - else { - if (Downloaded_Version < Installed_Version) { - if (!MainActivity.this.isFinishing()) { - final AlertDialog.Builder Downgrade_Check = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); - String Title = "".concat(installation_failed_0.concat("")); - String TitleColor = "1DB954"; - Downgrade_Check.setTitle(Html.fromHtml(""+Title+"")); - String Message = installation_failed_desc_0.replace("\n", "
"); - String MessageColor = "FFFFFF"; - Downgrade_Check.setMessage(Html.fromHtml(""+Message+"")); - Downgrade_Check.setPositiveButton(uninstall_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Downgrade_Check, int p) { - AlertDialog.setCancelable(true); - try { - Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.music")); - startActivity(intent); - } - catch(Exception e) { - } - } - }); - Downgrade_Check.setNeutralButton(close_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Downgrade_Check, int p) { - AlertDialog.setCancelable(true); - } - }); - AlertDialog = Downgrade_Check.create(); - AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); - AlertDialog.show(); - } - } - } - } - }); - Success_Download.setNeutralButton(later_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Success_Download, int p) { - AlertDialog.setCancelable(true); - _Reminder(); - } - }); - AlertDialog = Success_Download.create(); - AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); - AlertDialog.show(); - - } - - - public void _Extension_2() { - final AlertDialog.Builder Success_Download = new AlertDialog.Builder(MainActivity.this, R.style.Other_Dialog); - String Title = "".concat(download_success_0.concat("")); - String TitleColor = "1DB954"; - Success_Download.setTitle(Html.fromHtml(""+Title+"")); - Success_Download.setPositiveButton(install_now_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Success_Download, int p) { - AlertDialog.setCancelable(true); - if ((Installed_Version_Cloned < Downloaded_Version_Cloned) || ((Downloaded_Version_Cloned > Installed_Version_Cloned) || ((Installed_Version_Cloned == Downloaded_Version_Cloned) || Installed_Checker_Cloned.equals("false")))) { - if (getICSignature(getApplicationContext()).equals(getDCSignature(getApplicationContext())) || Installed_Checker_Cloned.equals("false")) { - StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); StrictMode.setVmPolicy(builder.build()); - if(android.os.Build.VERSION.SDK_INT >= 29){ - try { - Intent intent = new Intent(Intent.ACTION_VIEW); - intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); - intent.setDataAndType(FileProvider.getUriForFile(MainActivity.this, "com.xc3fff0e.xmanager.provider", new File("/storage/emulated/0/Download/Patched Cloned (xManager).apk")), "application/vnd.android.package-archive"); - startActivity(intent); - _Reminder(); - } - catch(Exception e) { - } - } else { - try { - Intent intent = new Intent(Intent.ACTION_VIEW); - intent.setDataAndType(Uri.fromFile(new File("/storage/emulated/0/Download/Patched Cloned (xManager).apk")), "application/vnd.android.package-archive"); - startActivity(intent); - _Reminder(); - } - catch(Exception e) { - } - } - } else { - if (!MainActivity.this.isFinishing()) { - final AlertDialog.Builder Signature_Check = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); - String Title = "".concat(installation_failed_0.concat("")); - String TitleColor = "1DB954"; - Signature_Check.setTitle(Html.fromHtml(""+Title+"")); - String Message = installation_failed_cloned_desc_0.replace("\n", "
"); - String MessageColor = "FFFFFF"; - Signature_Check.setMessage(Html.fromHtml(""+Message+"")); - Signature_Check.setPositiveButton(uninstall_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Signature_Check, int p) { - AlertDialog.setCancelable(true); - try { - Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.musix")); - startActivity(intent); - } - catch(Exception e) { - } - } - }); - Signature_Check.setNeutralButton(close_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Signature_Check, int p) { - AlertDialog.setCancelable(true); - } - }); - AlertDialog = Signature_Check.create(); - AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); - AlertDialog.show(); - } - } - } - else { - if (!MainActivity.this.isFinishing()) { - if (Downloaded_Version_Cloned < Installed_Version_Cloned) { - final AlertDialog.Builder Downgrade_Check = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); - String Title = "".concat(installation_failed_0.concat("")); - String TitleColor = "1DB954"; - Downgrade_Check.setTitle(Html.fromHtml(""+Title+"")); - String Message = installation_failed_desc_0.replace("\n", "
"); - String MessageColor = "FFFFFF"; - Downgrade_Check.setMessage(Html.fromHtml(""+Message+"")); - Downgrade_Check.setPositiveButton(uninstall_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Downgrade_Check, int p) { - AlertDialog.setCancelable(true); - try { - Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.musix")); - startActivity(intent); - } - catch(Exception e) { - } - } - }); - Downgrade_Check.setNeutralButton(close_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Downgrade_Check, int p) { - AlertDialog.setCancelable(true); - } - }); - AlertDialog = Downgrade_Check.create(); - AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); - AlertDialog.show(); - } - } - } - } - }); - Success_Download.setNeutralButton(later_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Success_Download, int p) { - AlertDialog.setCancelable(true); - _Reminder(); - } - }); - AlertDialog = Success_Download.create(); - AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); - AlertDialog.show(); - - } - - - public void _Extension_3() { - final AlertDialog.Builder Success_Download = new AlertDialog.Builder(MainActivity.this, R.style.Other_Dialog); - String Title = "".concat(download_success_0.concat("")); - String TitleColor = "1DB954"; - Success_Download.setTitle(Html.fromHtml(""+Title+"")); - Success_Download.setPositiveButton(install_update_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Success_Download, int p) { - AlertDialog.setCancelable(true); - StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); StrictMode.setVmPolicy(builder.build()); - if(android.os.Build.VERSION.SDK_INT >= 29){ - try { - Intent intent = new Intent(Intent.ACTION_VIEW); - intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); - intent.setDataAndType(FileProvider.getUriForFile(MainActivity.this, "com.xc3fff0e.xmanager.provider", new File("/storage/emulated/0/Download/xManager Update.apk")), "application/vnd.android.package-archive"); - startActivity(intent); - } - catch(Exception e) { - } - } else { - try { - Intent intent = new Intent(Intent.ACTION_VIEW); - intent.setDataAndType(Uri.fromFile(new File("/storage/emulated/0/Download/xManager Update.apk")), "application/vnd.android.package-archive"); - startActivity(intent); - } - catch(Exception e) { - } - } - } - }); - Success_Download.setNeutralButton(later_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Success_Download, int p) { - AlertDialog.setCancelable(true); - } - }); - AlertDialog = Success_Download.create(); - AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); - AlertDialog.show(); - - } - - - public void _Extension_4() { - if ((Installed_Version < Downloaded_Version) || ((Downloaded_Version > Installed_Version) || ((Installed_Version == Downloaded_Version) || Installed_Checker.equals("false")))) { - if (getISignature(getApplicationContext()).equals(getDSignature(getApplicationContext())) || Installed_Checker.equals("false")) { - StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); StrictMode.setVmPolicy(builder.build()); - if(android.os.Build.VERSION.SDK_INT >= 29){ - try { - Intent intent = new Intent(Intent.ACTION_VIEW); - intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); - intent.setDataAndType(FileProvider.getUriForFile(MainActivity.this, "com.xc3fff0e.xmanager.provider", new File("/storage/emulated/0/Download/Patched (xManager).apk")), "application/vnd.android.package-archive"); - startActivity(intent); - _Reminder(); - } - catch(Exception e) { - SketchwareUtil.CustomToast(getApplicationContext(), "Installation Failed", 0xFF000000, 14, 0xFFE0E0E0, 30, SketchwareUtil.BOTTOM); - } - } else { - try { - Intent intent = new Intent(Intent.ACTION_VIEW); - intent.setDataAndType(Uri.fromFile(new File("/storage/emulated/0/Download/Patched (xManager).apk")), "application/vnd.android.package-archive"); - startActivity(intent); - _Reminder(); - } - catch(Exception e) { - SketchwareUtil.CustomToast(getApplicationContext(), "Installation Failed", 0xFF000000, 14, 0xFFE0E0E0, 30, SketchwareUtil.BOTTOM); - } - } - } else { - final AlertDialog.Builder Signature_Check = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); - String Title = "".concat(installation_failed_0.concat("")); - String TitleColor = "1DB954"; - Signature_Check.setTitle(Html.fromHtml(""+Title+"")); - String Message = installation_failed_spap_desc_0.replace("\n", "
"); - String MessageColor = "FFFFFF"; - Signature_Check.setMessage(Html.fromHtml(""+Message+"")); - Signature_Check.setPositiveButton(uninstall_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Signature_Check, int p) { - AlertDialog.setCancelable(true); - try { - Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.music")); - startActivity(intent); - } - catch(Exception e) { - } - } - }); - Signature_Check.setNeutralButton(close_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Signature_Check, int p) { - AlertDialog.setCancelable(true); - } - }); - AlertDialog = Signature_Check.create(); - AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); - AlertDialog.show(); - } - } - else { - if (Downloaded_Version < Installed_Version) { - final AlertDialog.Builder Downgrade_Check = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); - String Title = "".concat(installation_failed_0.concat("")); - String TitleColor = "1DB954"; - Downgrade_Check.setTitle(Html.fromHtml(""+Title+"")); - String Message = installation_failed_desc_0.replace("\n", "
"); - String MessageColor = "FFFFFF"; - Downgrade_Check.setMessage(Html.fromHtml(""+Message+"")); - Downgrade_Check.setPositiveButton(uninstall_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Downgrade_Check, int p) { - AlertDialog.setCancelable(true); - try { - Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.music")); - startActivity(intent); - } - catch(Exception e) { - } - } - }); - Downgrade_Check.setNeutralButton(close_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Downgrade_Check, int p) { - AlertDialog.setCancelable(true); - } - }); - AlertDialog = Downgrade_Check.create(); - AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); - AlertDialog.show(); - } - } - - } - - - public void _Extension_5() { - if ((Installed_Version_Cloned < Downloaded_Version_Cloned) || ((Downloaded_Version_Cloned > Installed_Version_Cloned) || ((Installed_Version_Cloned == Downloaded_Version_Cloned) || Installed_Checker_Cloned.equals("false")))) { - if (getICSignature(getApplicationContext()).equals(getDCSignature(getApplicationContext())) || Installed_Checker_Cloned.equals("false")) { - StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); StrictMode.setVmPolicy(builder.build()); - if(android.os.Build.VERSION.SDK_INT >= 29){ - try { - Intent intent = new Intent(Intent.ACTION_VIEW); - intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); - intent.setDataAndType(FileProvider.getUriForFile(MainActivity.this, "com.xc3fff0e.xmanager.provider", new File("/storage/emulated/0/Download/Patched Cloned (xManager).apk")), "application/vnd.android.package-archive"); - startActivity(intent); - _Reminder(); - } - catch(Exception e) { - SketchwareUtil.CustomToast(getApplicationContext(), "Installation Failed", 0xFF000000, 14, 0xFFE0E0E0, 30, SketchwareUtil.BOTTOM); - } - } else { - try { - Intent intent = new Intent(Intent.ACTION_VIEW); - intent.setDataAndType(Uri.fromFile(new File("/storage/emulated/0/Download/Patched Cloned (xManager).apk")), "application/vnd.android.package-archive"); - startActivity(intent); - _Reminder(); - } - catch(Exception e) { - SketchwareUtil.CustomToast(getApplicationContext(), "Installation Failed", 0xFF000000, 14, 0xFFE0E0E0, 30, SketchwareUtil.BOTTOM); - } - } - } else { - final AlertDialog.Builder Signature_Check = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); - String Title = "".concat(installation_failed_0.concat("")); - String TitleColor = "1DB954"; - Signature_Check.setTitle(Html.fromHtml(""+Title+"")); - String Message = installation_failed_cloned_desc_0.replace("\n", "
"); - String MessageColor = "FFFFFF"; - Signature_Check.setMessage(Html.fromHtml(""+Message+"")); - Signature_Check.setPositiveButton(uninstall_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Signature_Check, int p) { - AlertDialog.setCancelable(true); - try { - Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.musix")); - startActivity(intent); - } - catch(Exception e) { - } - } - }); - Signature_Check.setNeutralButton(close_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Signature_Check, int p) { - AlertDialog.setCancelable(true); - } - }); - AlertDialog = Signature_Check.create(); - AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); - AlertDialog.show(); - } - } - else { - if (Downloaded_Version_Cloned < Installed_Version_Cloned) { - final AlertDialog.Builder Downgrade_Check = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); - String Title = "".concat(installation_failed_0.concat("")); - String TitleColor = "1DB954"; - Downgrade_Check.setTitle(Html.fromHtml(""+Title+"")); - String Message = installation_failed_desc_0.replace("\n", "
"); - String MessageColor = "FFFFFF"; - Downgrade_Check.setMessage(Html.fromHtml(""+Message+"")); - Downgrade_Check.setPositiveButton(uninstall_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Downgrade_Check, int p) { - AlertDialog.setCancelable(true); - try { - Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.musix")); - startActivity(intent); - } - catch(Exception e) { - } - } - }); - Downgrade_Check.setNeutralButton(close_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Downgrade_Check, int p) { - AlertDialog.setCancelable(true); - } - }); - AlertDialog = Downgrade_Check.create(); - AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); - AlertDialog.show(); - } - } - - } - - - public void _Reinitialize() { - manager_lang_1.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_2.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_3.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_4.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_5.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_6.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_7.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_8.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_9.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_10.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_11.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_12.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_13.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_14.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_15.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_16.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_17.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_18.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_19.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_20.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_21.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_22.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_23.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_24.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_25.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_26.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_27.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_28.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_29.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_30.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_31.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_32.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_33.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_34.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_35.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_36.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_37.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_38.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_39.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_40.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_41.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_42.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_43.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - manager_lang_44.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_1.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_2.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_3.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_4.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_5.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_6.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_7.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_8.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_9.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_10.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_11.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_12.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_13.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_14.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_15.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_16.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_17.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_18.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_19.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_20.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_21.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_22.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_23.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_24.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_25.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_26.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_27.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_28.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_29.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_30.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_31.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_32.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_33.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_34.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_35.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_36.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_37.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_38.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_39.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_40.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_41.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_42.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_43.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - translator_44.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - } - - - public void _Reminder() { - if (DISABLE_NOTIFICATION.getString("DISABLE", "").equals("ON")) { - disable_notification_switch.setChecked(true); - } - else { - if (DISABLE_NOTIFICATION.getString("DISABLE", "").equals("OFF")) { - disable_notification_switch.setChecked(false); - _Install_Reminder(); - } - } - } - - - public void _Signature_Checker_Lite() { - } - public String getILSignature(Context context) { - try { - android.content.pm.PackageInfo packageInfo = context.getPackageManager().getPackageInfo("com.spotify.lite", PackageManager.GET_SIGNATURES); - for (android.content.pm.Signature signature : packageInfo.signatures) { - String il_sha1 = geti_SHA1_(signature.toByteArray()); - return il_sha1; - } - } catch (android.content.pm.PackageManager.NameNotFoundException e) { - } - return ""; - } - - public String getil_SHA1_(byte[] sig) { - try { - java.security.MessageDigest digest = java.security.MessageDigest.getInstance("SHA1"); - digest.update(sig); - byte[] hashtext = digest.digest(); - return il_bytes_To_Hex_(hashtext); - } catch (java.security.NoSuchAlgorithmException e) { - } - return ""; - } - - public String il_bytes_To_Hex_(byte[] bytes) { - final char[] hexArray = { '0', '1', '2', '3', '4', '5', '6', '7', '8', - '9', 'A', 'B', 'C', 'D', 'E', 'F' }; - char[] hexChars = new char[bytes.length * 2]; - int v; - for (int j = 0; j < bytes.length; j++) { - v = bytes[j] & 0xFF; - hexChars[j * 2] = hexArray[v >>> 4]; - hexChars[j * 2 + 1] = hexArray[v & 0x0F]; - } - return new String(hexChars); - } - { - - - } - public String getDLSignature(Context context) { - try { - android.content.pm.PackageInfo packageArchiveInfo = context.getPackageManager().getPackageArchiveInfo(apk_path_location.getText().toString().concat("Patched Lite (xManager).apk"), PackageManager.GET_SIGNATURES); - for (android.content.pm.Signature signature : packageArchiveInfo.signatures) { - String dl_sha1 = getd_SHA1_(signature.toByteArray()); - return dl_sha1; - } - } catch (Exception e) { - } - return ""; - } - - public String getdl_SHA1_(byte[] sig) { - try { - java.security.MessageDigest digest = java.security.MessageDigest.getInstance("SHA1"); - digest.update(sig); - byte[] hashtext = digest.digest(); - return dl_bytes_To_Hex_(hashtext); - } catch (java.security.NoSuchAlgorithmException e) { - } - return ""; - } - - public String dl_bytes_To_Hex_(byte[] bytes) { - final char[] hexArray = { '0', '1', '2', '3', '4', '5', '6', '7', '8', - '9', 'A', 'B', 'C', 'D', 'E', 'F' }; - char[] hexChars = new char[bytes.length * 2]; - int v; - for (int j = 0; j < bytes.length; j++) { - v = bytes[j] & 0xFF; - hexChars[j * 2] = hexArray[v >>> 4]; - hexChars[j * 2 + 1] = hexArray[v & 0x0F]; - } - return new String(hexChars); - } - { - - - } - - - public void _Download_Lite(final String _url, final String _path) { - android.net.ConnectivityManager connMgr = (android.net.ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE); - android.net.NetworkInfo networkInfo = connMgr.getActiveNetworkInfo(); - if (networkInfo != null && networkInfo.isConnected()) { - final String urlDownload = _url; - final DownloadManager.Request request = new DownloadManager.Request(Uri.parse(urlDownload)); - final String fileName = URLUtil.guessFileName(urlDownload, null, null); - final String cookies = CookieManager.getInstance().getCookie(urlDownload); - final String userAgent = "USER_AGENT"; - request.addRequestHeader("cookie", cookies); - request.addRequestHeader("User-Agent", userAgent); - request.setAllowedNetworkTypes(DownloadManager.Request.NETWORK_WIFI | DownloadManager.Request.NETWORK_MOBILE); - request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_HIDDEN); - request.setMimeType("application/vnd.android.package-archive"); - request.allowScanningByMediaScanner(); - request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, "Patched Lite (xManager).apk"); - final DownloadManager manager = (DownloadManager) getSystemService(Context.DOWNLOAD_SERVICE); - final long downloadId = manager.enqueue(request); - final ProgressDialog prog = new ProgressDialog(MainActivity.this, R.style.Progress_Dialog); - final ProgressDialog check = new ProgressDialog(MainActivity.this, R.style.Progress_Dialog); - prog.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); - check.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); - Thread progress = new Thread() { - @Override - public void run() { - boolean downloading = true; - while (downloading) { - DownloadManager.Query q = new DownloadManager.Query(); - q.setFilterById(downloadId); - android.database.Cursor cursor = manager.query(q); - if (cursor != null) { - if (cursor.moveToFirst()) { - int bytes_downloaded = cursor.getInt(cursor .getColumnIndex(DownloadManager.COLUMN_BYTES_DOWNLOADED_SO_FAR)); - int bytes_total = cursor.getInt(cursor.getColumnIndex(DownloadManager.COLUMN_TOTAL_SIZE_BYTES)); - if (cursor.getInt(cursor.getColumnIndex(DownloadManager.COLUMN_STATUS)) == DownloadManager.STATUS_SUCCESSFUL) { - downloading = false; - } - if (cursor.getInt(cursor.getColumnIndex(DownloadManager.COLUMN_STATUS)) == DownloadManager.STATUS_FAILED) { - runOnUiThread(new Runnable() { - public void run() { - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "The file or link is currently unavailable. Please try again later.", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); - _File_Remover(); - } - }); - } - final int dl_progress = (int) (bytes_total != 0 ? (bytes_downloaded * 100l) / bytes_total : 0) ; - final int dl_max = (int) (100); - final float file_front = (float) ((bytes_downloaded * 1.0) / 1048576.0); - final float file_end = (float) ((bytes_total * 1.0) / 1048576.0); - String file_min = String.format("%.2f", file_front); - String file_fix = String.format("%.2f", file_end); - String file_max = file_fix.replace("-", ""); - runOnUiThread(new Runnable() { - @Override - public void run() { - final Handler handler = new Handler(); - handler.postDelayed(new Runnable() { - @Override - public void run() { - if (prog.getProgress() < dl_progress) { - prog.incrementProgressBy(1); - } - } - }, 10); - ObjectAnimator animation = ObjectAnimator.ofInt(prog, "progress", prog.getProgress(), prog.getMax()); - animation.setDuration(1500); - animation.setInterpolator(new DecelerateInterpolator()); - animation.start(); - if (!MainActivity.this.isFinishing()) { - String Title = "".concat(downloading_file_0.concat("")); - String TitleColor = "1DB954"; - prog.setTitle(Html.fromHtml(""+Title+"")); - prog.setProgressDrawable(getResources().getDrawable(R.drawable.progress_bar)); - prog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); - prog.setProgressNumberFormat((hidden_patched.getText().toString()) + " | " + (file_max) + " MB"); - prog.setCancelable(false); - prog.setMax(dl_max); - prog.setButton(DialogInterface.BUTTON_NEGATIVE, cancel_0, new DialogInterface.OnClickListener() { - @Override - public void onClick(DialogInterface dialog, int which) { - prog.setCancelable(true); - manager.remove(downloadId); - _File_Remover(); - final Handler handler = new Handler(); - handler.postDelayed(new Runnable() { - @Override - public void run() { - prog.dismiss(); - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Download Cancelled", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); - } - }, 0); - } - }); - prog.show(); - } - } - }); - if (bytes_downloaded == bytes_total) { - Timer = new TimerTask() { - @Override - public void run() { - runOnUiThread(new Runnable() { - @Override - public void run() { - ValueAnimator finalize = ValueAnimator.ofInt(0, 100); - finalize.setDuration(1800); - finalize.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { - public void onAnimationUpdate(ValueAnimator animation) { - check.setProgress((int) animation.getAnimatedValue()); - String Title = "".concat(hidden_patched.getText().toString().concat("")); - String TitleColor = "1DB954"; - check.setTitle(Html.fromHtml(""+Title+"")); - check.setProgressDrawable(getResources().getDrawable(R.drawable.progress_bar)); - check.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); - check.setProgressNumberFormat("PREPARING"); - check.setCancelable(false); - } - }); - finalize.start(); - prog.dismiss(); - check.show(); - } - }); - } - }; - _timer.schedule(Timer, (int)(1500)); - Timer = new TimerTask() { - @Override - public void run() { - runOnUiThread(new Runnable() { - @Override - public void run() { - ValueAnimator finalize = ValueAnimator.ofInt(0, 100); - finalize.setDuration(1800); - finalize.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { - public void onAnimationUpdate(ValueAnimator animation) { - check.setProgress((int) animation.getAnimatedValue()); - String Title = "".concat(hidden_patched.getText().toString().concat("")); - String TitleColor = "1DB954"; - check.setTitle(Html.fromHtml(""+Title+"")); - check.setProgressDrawable(getResources().getDrawable(R.drawable.progress_bar)); - check.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); - check.setProgressNumberFormat("VERIFYING PATCHED"); - check.setCancelable(false); - } - }); - finalize.start(); - } - }); - } - }; - _timer.schedule(Timer, (int)(3500)); - Timer = new TimerTask() { - @Override - public void run() { - runOnUiThread(new Runnable() { - @Override - public void run() { - ValueAnimator finalize = ValueAnimator.ofInt(0, 100); - finalize.setDuration(1800); - finalize.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { - public void onAnimationUpdate(ValueAnimator animation) { - check.setProgress((int) animation.getAnimatedValue()); - String Title = "".concat(hidden_patched.getText().toString().concat("")); - String TitleColor = "1DB954"; - check.setTitle(Html.fromHtml(""+Title+"")); - check.setProgressDrawable(getResources().getDrawable(R.drawable.progress_bar)); - check.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); - check.setProgressNumberFormat("VERIFYING SIGNATURE"); - check.setCancelable(false); - } - }); - finalize.start(); - } - }); - } - }; - _timer.schedule(Timer, (int)(4500)); - Timer = new TimerTask() { - @Override - public void run() { - runOnUiThread(new Runnable() { - @Override - public void run() { - ValueAnimator finalize = ValueAnimator.ofInt(0, 100); - finalize.setDuration(1800); - finalize.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { - public void onAnimationUpdate(ValueAnimator animation) { - check.setProgress((int) animation.getAnimatedValue()); - String Title = "".concat(hidden_patched.getText().toString().concat("")); - String TitleColor = "1DB954"; - check.setTitle(Html.fromHtml(""+Title+"")); - check.setProgressDrawable(getResources().getDrawable(R.drawable.progress_bar)); - check.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); - check.setProgressNumberFormat("FINALIZING"); - check.setCancelable(false); - } - }); - finalize.start(); - } - }); - } - }; - _timer.schedule(Timer, (int)(5500)); - Timer = new TimerTask() { - @Override - public void run() { - runOnUiThread(new Runnable() { - @Override - public void run() { - try { - FileUtil.copyFile("/storage/emulated/0/Download/Patched Lite (xManager).apk", apk_path_location.getText().toString().concat("Patched Lite (xManager).apk")); - } - catch(Exception e) { - } - if (!MainActivity.this.isFinishing()) { - _Extension_7(); - prog.dismiss(); - } - prog.dismiss(); - check.dismiss(); - } - }); - } - }; - _timer.schedule(Timer, (int)(6500)); - } - } - cursor.close(); + } } - } - } - }; - progress.start(); - } else { - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Slow or no internet connection. Try again later.", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); - } - - } - - - public void _Download_Install_Lite(final String _url, final String _path) { - android.net.ConnectivityManager connMgr = (android.net.ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE); - android.net.NetworkInfo networkInfo = connMgr.getActiveNetworkInfo(); - if (networkInfo != null && networkInfo.isConnected()) { - final String urlDownload = _url; - final DownloadManager.Request request = new DownloadManager.Request(Uri.parse(urlDownload)); - final String fileName = URLUtil.guessFileName(urlDownload, null, null); - final String cookies = CookieManager.getInstance().getCookie(urlDownload); - final String userAgent = "USER_AGENT"; - request.addRequestHeader("cookie", cookies); - request.addRequestHeader("User-Agent", userAgent); - request.setAllowedNetworkTypes(DownloadManager.Request.NETWORK_WIFI | DownloadManager.Request.NETWORK_MOBILE); - request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_HIDDEN); - request.setMimeType("application/vnd.android.package-archive"); - request.allowScanningByMediaScanner(); - request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, "Patched Lite (xManager).apk"); - final DownloadManager manager = (DownloadManager) getSystemService(Context.DOWNLOAD_SERVICE); - final long downloadId = manager.enqueue(request); - final ProgressDialog prog = new ProgressDialog(MainActivity.this, R.style.Progress_Dialog); - final ProgressDialog check = new ProgressDialog(MainActivity.this, R.style.Progress_Dialog); - prog.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); - check.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); - Thread progress = new Thread() { - @Override - public void run() { - boolean downloading = true; - while (downloading) { - DownloadManager.Query q = new DownloadManager.Query(); - q.setFilterById(downloadId); - android.database.Cursor cursor = manager.query(q); - if (cursor != null) { - if (cursor.moveToFirst()) { - int bytes_downloaded = cursor.getInt(cursor .getColumnIndex(DownloadManager.COLUMN_BYTES_DOWNLOADED_SO_FAR)); - int bytes_total = cursor.getInt(cursor.getColumnIndex(DownloadManager.COLUMN_TOTAL_SIZE_BYTES)); - if (cursor.getInt(cursor.getColumnIndex(DownloadManager.COLUMN_STATUS)) == DownloadManager.STATUS_SUCCESSFUL) { - downloading = false; + } + Animation animation; + animation = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.fade_in); + animation.setDuration(500); version_oc_01.startAnimation(animation); + animation = null; + version_oc_01.setImageResource(R.drawable.open); + version_oc_02.setImageResource(R.drawable.close); + version_oc_03.setImageResource(R.drawable.close); + changelogs_oc.setImageResource(R.drawable.close); + Timer = new TimerTask() { + @Override + public void run() { + runOnUiThread(new Runnable() { + @Override + public void run() { + if (SWITCH_VERSION.getString("SWITCH", "").equals("A")) { + list_items_1.setVisibility(View.GONE); + list_items_2.setVisibility(View.VISIBLE); + list_items_3.setVisibility(View.GONE); + list_items_5.setVisibility(View.GONE); + list_items_2.setAdapter(new List_items_2Adapter(amoled_patched)); + ((BaseAdapter)list_items_2.getAdapter()).notifyDataSetChanged(); + } + else { + if (SWITCH_VERSION.getString("SWITCH", "").equals("B")) { + list_items_1.setVisibility(View.GONE); + list_items_2.setVisibility(View.VISIBLE); + list_items_3.setVisibility(View.GONE); + list_items_5.setVisibility(View.GONE); + list_items_2.setAdapter(new List_items_2Adapter(amoled_cloned_patched)); + ((BaseAdapter)list_items_2.getAdapter()).notifyDataSetChanged(); } - if (cursor.getInt(cursor.getColumnIndex(DownloadManager.COLUMN_STATUS)) == DownloadManager.STATUS_FAILED) { - runOnUiThread(new Runnable() { - public void run() { - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "The file or link is currently unavailable. Please try again later.", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); - _File_Remover(); - } - }); - } - final int dl_progress = (int) (bytes_total != 0 ? (bytes_downloaded * 100l) / bytes_total : 0) ; - final int dl_max = (int) (100); - final float file_front = (float) ((bytes_downloaded * 1.0) / 1048576.0); - final float file_end = (float) ((bytes_total * 1.0) / 1048576.0); - String file_min = String.format("%.2f", file_front); - String file_fix = String.format("%.2f", file_end); - String file_max = file_fix.replace("-", ""); - runOnUiThread(new Runnable() { + else { + if (SWITCH_VERSION.getString("SWITCH", "").equals("C")) { + list_items_1.setVisibility(View.GONE); + list_items_2.setVisibility(View.VISIBLE); + list_items_3.setVisibility(View.GONE); + list_items_5.setVisibility(View.GONE); + list_items_2.setAdapter(new List_items_2Adapter(amoled_experimental_patched)); + ((BaseAdapter)list_items_2.getAdapter()).notifyDataSetChanged(); + } + else { + if (SWITCH_VERSION.getString("SWITCH", "").equals("D")) { + list_items_1.setVisibility(View.GONE); + list_items_2.setVisibility(View.VISIBLE); + list_items_3.setVisibility(View.GONE); + list_items_5.setVisibility(View.GONE); + list_items_2.setAdapter(new List_items_2Adapter(amoled_experimental_cloned_patched)); + ((BaseAdapter)list_items_2.getAdapter()).notifyDataSetChanged(); + } + } + } + } + Animation animation; + animation = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.fade_in); + animation.setDuration(500); version_oc_02.startAnimation(animation); + animation = null; + version_oc_01.setImageResource(R.drawable.close); + version_oc_02.setImageResource(R.drawable.open); + version_oc_03.setImageResource(R.drawable.close); + changelogs_oc.setImageResource(R.drawable.close); + Timer = new TimerTask() { + @Override + public void run() { + runOnUiThread(new Runnable() { @Override public void run() { - final Handler handler = new Handler(); - handler.postDelayed(new Runnable() { - @Override - public void run() { - if (prog.getProgress() < dl_progress) { - prog.incrementProgressBy(1); - } - } - }, 10); - ObjectAnimator animation = ObjectAnimator.ofInt(prog, "progress", prog.getProgress(), prog.getMax()); - animation.setDuration(1500); - animation.setInterpolator(new DecelerateInterpolator()); - animation.start(); - if (!MainActivity.this.isFinishing()) { - String Title = "".concat(downloading_file_0.concat("")); - String TitleColor = "1DB954"; - prog.setTitle(Html.fromHtml(""+Title+"")); - prog.setProgressDrawable(getResources().getDrawable(R.drawable.progress_bar)); - prog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); - prog.setProgressNumberFormat((hidden_patched.getText().toString()) + " | " + (file_max) + " MB"); - prog.setCancelable(false); - prog.setMax(dl_max); - prog.setButton(DialogInterface.BUTTON_NEGATIVE, cancel_0, new DialogInterface.OnClickListener() { - @Override - public void onClick(DialogInterface dialog, int which) { - prog.setCancelable(true); - manager.remove(downloadId); - _File_Remover(); - final Handler handler = new Handler(); - handler.postDelayed(new Runnable() { - @Override - public void run() { - prog.dismiss(); - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Download Cancelled", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); - } - }, 0); - } - }); - prog.show(); - } - } - }); - if (bytes_downloaded == bytes_total) { - Timer = new TimerTask() { - @Override - public void run() { - runOnUiThread(new Runnable() { - @Override - public void run() { - ValueAnimator finalize = ValueAnimator.ofInt(0, 100); - finalize.setDuration(1800); - finalize.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { - public void onAnimationUpdate(ValueAnimator animation) { - check.setProgress((int) animation.getAnimatedValue()); - String Title = "".concat(hidden_patched.getText().toString().concat("")); - String TitleColor = "1DB954"; - check.setTitle(Html.fromHtml(""+Title+"")); - check.setProgressDrawable(getResources().getDrawable(R.drawable.progress_bar)); - check.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); - check.setProgressNumberFormat("PREPARING"); - check.setCancelable(false); - } - }); - finalize.start(); - prog.dismiss(); - check.show(); - } - }); - } - }; - _timer.schedule(Timer, (int)(1500)); - Timer = new TimerTask() { - @Override - public void run() { - runOnUiThread(new Runnable() { - @Override - public void run() { - ValueAnimator finalize = ValueAnimator.ofInt(0, 100); - finalize.setDuration(1800); - finalize.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { - public void onAnimationUpdate(ValueAnimator animation) { - check.setProgress((int) animation.getAnimatedValue()); - String Title = "".concat(hidden_patched.getText().toString().concat("")); - String TitleColor = "1DB954"; - check.setTitle(Html.fromHtml(""+Title+"")); - check.setProgressDrawable(getResources().getDrawable(R.drawable.progress_bar)); - check.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); - check.setProgressNumberFormat("VERIFYING PATCHED"); - check.setCancelable(false); - } - }); - finalize.start(); - } - }); - } - }; - _timer.schedule(Timer, (int)(3500)); - Timer = new TimerTask() { - @Override - public void run() { - runOnUiThread(new Runnable() { - @Override - public void run() { - ValueAnimator finalize = ValueAnimator.ofInt(0, 100); - finalize.setDuration(1800); - finalize.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { - public void onAnimationUpdate(ValueAnimator animation) { - check.setProgress((int) animation.getAnimatedValue()); - String Title = "".concat(hidden_patched.getText().toString().concat("")); - String TitleColor = "1DB954"; - check.setTitle(Html.fromHtml(""+Title+"")); - check.setProgressDrawable(getResources().getDrawable(R.drawable.progress_bar)); - check.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); - check.setProgressNumberFormat("VERIFYING SIGNATURE"); - check.setCancelable(false); - } - }); - finalize.start(); - } - }); - } - }; - _timer.schedule(Timer, (int)(4500)); - Timer = new TimerTask() { + Animation animation; + animation = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.fade_in); + animation.setDuration(500); version_oc_03.startAnimation(animation); + animation = null; + list_items_1.setVisibility(View.GONE); + list_items_2.setVisibility(View.GONE); + list_items_3.setVisibility(View.VISIBLE); + list_items_5.setVisibility(View.GONE); + version_oc_01.setImageResource(R.drawable.close); + version_oc_02.setImageResource(R.drawable.close); + version_oc_03.setImageResource(R.drawable.open); + changelogs_oc.setImageResource(R.drawable.close); + list_items_3.setAdapter(new List_items_3Adapter(lite_patched)); + ((BaseAdapter)list_items_3.getAdapter()).notifyDataSetChanged(); + Timer = new TimerTask() { @Override public void run() { - runOnUiThread(new Runnable() { + runOnUiThread(new Runnable() { + @Override + public void run() { + Animation animation; + animation = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.fade_in); + animation.setDuration(500); changelogs_oc.startAnimation(animation); + animation = null; + list_items_1.setVisibility(View.GONE); + list_items_2.setVisibility(View.GONE); + list_items_3.setVisibility(View.GONE); + list_items_5.setVisibility(View.VISIBLE); + version_oc_01.setImageResource(R.drawable.close); + version_oc_02.setImageResource(R.drawable.close); + version_oc_03.setImageResource(R.drawable.close); + changelogs_oc.setImageResource(R.drawable.open); + list_items_5.setAdapter(new List_items_5Adapter(patched_changelogs)); + ((BaseAdapter)list_items_5.getAdapter()).notifyDataSetChanged(); + Timer = new TimerTask() { @Override public void run() { - ValueAnimator finalize = ValueAnimator.ofInt(0, 100); - finalize.setDuration(1800); - finalize.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { - public void onAnimationUpdate(ValueAnimator animation) { - check.setProgress((int) animation.getAnimatedValue()); - String Title = "".concat(hidden_patched.getText().toString().concat("")); - String TitleColor = "1DB954"; - check.setTitle(Html.fromHtml(""+Title+"")); - check.setProgressDrawable(getResources().getDrawable(R.drawable.progress_bar)); - check.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); - check.setProgressNumberFormat("FINALIZING"); - check.setCancelable(false); - } - }); - finalize.start(); - } - }); - } - }; - _timer.schedule(Timer, (int)(5500)); - Timer = new TimerTask() { - @Override - public void run() { - runOnUiThread(new Runnable() { - @Override - public void run() { - try { - FileUtil.copyFile("/storage/emulated/0/Download/Patched Lite (xManager).apk", apk_path_location.getText().toString().concat("Patched Lite (xManager).apk")); - } - catch(Exception e) { + runOnUiThread(new Runnable() { + @Override + public void run() { + main_refresh_layout.setRefreshing(false); + list_items_1.setVisibility(View.GONE); + list_items_2.setVisibility(View.GONE); + list_items_3.setVisibility(View.GONE); + list_items_5.setVisibility(View.GONE); + version_oc_01.setImageResource(R.drawable.close); + version_oc_02.setImageResource(R.drawable.close); + version_oc_03.setImageResource(R.drawable.close); + changelogs_oc.setImageResource(R.drawable.close); + main_body.setAlpha((float)(1.0d)); + String currentDateTimeString = java.text.DateFormat.getDateTimeInstance().format(new Date()); + + com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Data List Updated | " + (currentDateTimeString), com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); } - Timer = new TimerTask() { - @Override - public void run() { - runOnUiThread(new Runnable() { - @Override - public void run() { - prog.dismiss(); - check.dismiss(); - if ((Installed_Version_Lite < Downloaded_Version_Lite) || ((Downloaded_Version_Lite > Installed_Version_Lite) || ((Installed_Version_Lite == Downloaded_Version_Lite) || Installed_Checker_Lite.equals("false")))) { - if (getILSignature(getApplicationContext()).equals(getDLSignature(getApplicationContext())) || Installed_Checker_Lite.equals("false")) { - StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); StrictMode.setVmPolicy(builder.build()); - if(android.os.Build.VERSION.SDK_INT >= 29){ - try { - Intent intent = new Intent(Intent.ACTION_VIEW); - intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); - intent.setDataAndType(FileProvider.getUriForFile(MainActivity.this, "com.xc3fff0e.xmanager.provider", new File("/storage/emulated/0/Download/Patched Lite (xManager).apk")), "application/vnd.android.package-archive"); - startActivity(intent); - _Reminder(); - } - catch(Exception e) { - } - } else { - try { - Intent intent = new Intent(Intent.ACTION_VIEW); - intent.setDataAndType(Uri.fromFile(new File("/storage/emulated/0/Download/Patched Lite (xManager).apk")), "application/vnd.android.package-archive"); - startActivity(intent); - _Reminder(); - } - catch(Exception e) { - } - } - } else { - if (!MainActivity.this.isFinishing()) { - final AlertDialog.Builder Signature_Check = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); - String Title = "".concat(installation_failed_0.concat("")); - String TitleColor = "1DB954"; - Signature_Check.setTitle(Html.fromHtml(""+Title+"")); - String Message = installation_failed_spap_desc_0.replace("\n", "
"); - String MessageColor = "FFFFFF"; - Signature_Check.setMessage(Html.fromHtml(""+Message+"")); - Signature_Check.setPositiveButton(uninstall_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Signature_Check, int p) { - AlertDialog.setCancelable(true); - try { - Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.lite")); - startActivity(intent); - } - catch(Exception e) { - } - } - }); - Signature_Check.setNeutralButton(close_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Signature_Check, int p) { - AlertDialog.setCancelable(true); - } - }); - AlertDialog = Signature_Check.create(); - AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); - AlertDialog.show(); - } - } - } - else { - if (Downloaded_Version_Lite < Installed_Version_Lite) { - if (!MainActivity.this.isFinishing()) { - final AlertDialog.Builder Downgrade_Check = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); - String Title = "".concat(installation_failed_0.concat("")); - String TitleColor = "1DB954"; - Downgrade_Check.setTitle(Html.fromHtml(""+Title+"")); - String Message = installation_failed_desc_0.replace("\n", "
"); - String MessageColor = "FFFFFF"; - Downgrade_Check.setMessage(Html.fromHtml(""+Message+"")); - Downgrade_Check.setPositiveButton(uninstall_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Downgrade_Check, int p) { - AlertDialog.setCancelable(true); - try { - Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.lite")); - startActivity(intent); - } - catch(Exception e) { - } - } - }); - Downgrade_Check.setNeutralButton(close_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Downgrade_Check, int p) { - AlertDialog.setCancelable(true); - } - }); - AlertDialog = Downgrade_Check.create(); - AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); - AlertDialog.show(); - } - } - } - } - }); - } - }; - _timer.schedule(Timer, (int)(100)); + }); } - }); + }; + _timer.schedule(Timer, (int)(700)); + } + }); } - }; - _timer.schedule(Timer, (int)(6500)); + }; + _timer.schedule(Timer, (int)(600)); + } + }); } + }; + _timer.schedule(Timer, (int)(500)); } - cursor.close(); + }); } + }; + _timer.schedule(Timer, (int)(500)); + } + }); + } + }; + _timer.schedule(Timer, (int)(400)); + com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Refreshing Data List...", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); + main_body.setAlpha((float)(0.50d)); + _Animation_3(); + _Clickers(); + } + catch(Exception e) { + } + } + }); + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { + CharSequence name = "Null"; + String description = "Null"; + int importance = NotificationManager.IMPORTANCE_MAX; + NotificationChannel channel = new NotificationChannel("id 1", name, importance); + channel.setDescription(description); + + NotificationManager notificationManager = getSystemService(NotificationManager.class); + notificationManager.createNotificationChannel(channel); + } + + apk_path_location.setText(APK_PATH.getString("PATH", "")); + CHECK = 0; + _Rewarded_AdMob(); + _Layout_Transition(); + _Update_Remover(); + _Language_Fixer(); + _Hide_Patched(); + _Switch_Fixer(); + _Language_UI(); + _List_Updater(); + _Informations(); + _Scroll_Fixed(); + _Ads_AdMob(); + _Theme_UI(); + _Clickers(); + _Effects(); + _Extra(); + } + + + public void _API_Token() { + main_refresh_layout.setRefreshing(true); + if (SketchwareUtil.isConnected(getApplicationContext())) { + try { + Current_Version = Double.parseDouble(local_version.getText().toString()); + Latest_Version = Double.parseDouble(Datas.get("Server").toString()); + } catch (Exception e) { + } + Timer = new TimerTask() { + @Override + public void run() { + runOnUiThread(new Runnable() { + @Override + public void run() { + if (Latest_Version < Current_Version) { + com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "API Token Expired", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); + main_refresh_layout.setRefreshing(false); + main_body.setAlpha((float)(1.0d)); + } + else { + if (Latest_Version > Current_Version) { + com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "New Update Available", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); + main_refresh_layout.setRefreshing(false); + main_body.setAlpha((float)(1.0d)); + } + else { + if (!list_auto_refresh_switch.isChecked()) { + String currentDateTimeString = java.text.DateFormat.getDateTimeInstance().format(new Date()); + + com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "API Updated | " + (currentDateTimeString), com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); + main_refresh_layout.setRefreshing(false); + main_body.setAlpha((float)(1.0d)); + } } + } } - }; - progress.start(); - } else { - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Slow or no internet connection. Try again later.", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); + }); + } + }; + _timer.schedule(Timer, (int)(500)); + } + else { + Timer = new TimerTask() { + @Override + public void run() { + runOnUiThread(new Runnable() { + @Override + public void run() { + com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "API Update Failed", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); + main_refresh_layout.setRefreshing(false); + main_body.setAlpha((float)(1.0d)); + } + }); + } + }; + _timer.schedule(Timer, (int)(500)); } - } - public void _Extension_6() { - if ((Installed_Version_Lite < Downloaded_Version_Lite) || ((Downloaded_Version_Lite > Installed_Version_Lite) || ((Installed_Version_Lite == Downloaded_Version_Lite) || Installed_Checker_Lite.equals("false")))) { - if (getILSignature(getApplicationContext()).equals(getDLSignature(getApplicationContext())) || Installed_Checker_Lite.equals("false")) { - StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); StrictMode.setVmPolicy(builder.build()); - if(android.os.Build.VERSION.SDK_INT >= 29){ - try { - Intent intent = new Intent(Intent.ACTION_INSTALL_PACKAGE); - intent.setDataAndType(FileProvider.getUriForFile(MainActivity.this, "com.xc3fff0e.xmanager.provider", new File("/storage/emulated/0/Download/Patched Lite (xManager).apk")), "application/vnd.android.package-archive"); - intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); - startActivity(intent); - _Reminder(); - } - catch(Exception e) { - SketchwareUtil.CustomToast(getApplicationContext(), "Installation Failed", 0xFF000000, 14, 0xFFE0E0E0, 30, SketchwareUtil.BOTTOM); - } - } else { - try { - Intent intent = new Intent(Intent.ACTION_INSTALL_PACKAGE); - intent.setDataAndType(Uri.fromFile(new File("/storage/emulated/0/Download/Patched Lite (xManager).apk")), "application/vnd.android.package-archive"); - startActivity(intent); - _Reminder(); - } - catch(Exception e) { - SketchwareUtil.CustomToast(getApplicationContext(), "Installation Failed", 0xFF000000, 14, 0xFFE0E0E0, 30, SketchwareUtil.BOTTOM); - } - } - } else { - final AlertDialog.Builder Signature_Check = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); - String Title = "".concat(installation_failed_0.concat("")); - String TitleColor = "1DB954"; - Signature_Check.setTitle(Html.fromHtml(""+Title+"")); - String Message = installation_failed_cloned_desc_0.replace("\n", "
"); - String MessageColor = "FFFFFF"; - Signature_Check.setMessage(Html.fromHtml(""+Message+"")); - Signature_Check.setPositiveButton(uninstall_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Signature_Check, int p) { - AlertDialog.setCancelable(true); - try { - Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.lite")); - startActivity(intent); - } - catch(Exception e) { - } - } - }); - Signature_Check.setNeutralButton(close_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Signature_Check, int p) { - AlertDialog.setCancelable(true); - } - }); - AlertDialog = Signature_Check.create(); - AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); - AlertDialog.show(); - } - } - else { - if (Downloaded_Version_Lite < Installed_Version_Lite) { - final AlertDialog.Builder Downgrade_Check = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); - String Title = "".concat(installation_failed_0.concat("")); - String TitleColor = "1DB954"; - Downgrade_Check.setTitle(Html.fromHtml(""+Title+"")); - String Message = installation_failed_desc_0.replace("\n", "
"); - String MessageColor = "FFFFFF"; - Downgrade_Check.setMessage(Html.fromHtml(""+Message+"")); - Downgrade_Check.setPositiveButton(uninstall_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Downgrade_Check, int p) { - AlertDialog.setCancelable(true); - try { - Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.lite")); - startActivity(intent); + public void _Clickers() { + CLICKER_1 = 1; + CLICKER_2 = 1; + CLICKER_3 = 1; + CLICKER_4 = 1; + } + + + public void _Extension_1() { + final AlertDialog.Builder Success_Download = new AlertDialog.Builder(MainActivity.this, R.style.Other_Dialog); + String Title = "".concat(download_success_0.concat("")); + String TitleColor = "1DB954"; + Success_Download.setTitle(Html.fromHtml(""+Title+"")); + Success_Download.setPositiveButton(install_now_0, new DialogInterface.OnClickListener(){ + @Override + public void onClick(DialogInterface Success_Download, int p) { + AlertDialog.setCancelable(true); + _Downgrade_Checker(); + if ((Installed_Version < Downloaded_Version) || ((Downloaded_Version > Installed_Version) || ((Installed_Version == Downloaded_Version) || Installed_Checker.equals("false")))) { + if (getISignature(getApplicationContext()).equals(getDSignature(getApplicationContext())) || Installed_Checker.equals("false")) { + StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); StrictMode.setVmPolicy(builder.build()); + if(android.os.Build.VERSION.SDK_INT >= 29){ + try { + Intent intent = new Intent(Intent.ACTION_VIEW); + intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); + intent.setDataAndType(FileProvider.getUriForFile(MainActivity.this, "com.xc3fff0e.xmanager.provider", new File("/storage/emulated/0/Download/Patched (xManager).apk")), "application/vnd.android.package-archive"); + startActivity(intent); + _Reminder(); + } + catch(Exception e) { + } + } else { + try { + Intent intent = new Intent(Intent.ACTION_VIEW); + intent.setDataAndType(Uri.fromFile(new File("/storage/emulated/0/Download/Patched (xManager).apk")), "application/vnd.android.package-archive"); + startActivity(intent); + _Reminder(); + } + catch(Exception e) { + } + } + } else { + if (!MainActivity.this.isFinishing()) { + final AlertDialog.Builder Signature_Check = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); + String Title = "".concat(installation_failed_0.concat("")); + String TitleColor = "1DB954"; + Signature_Check.setTitle(Html.fromHtml(""+Title+"")); + String Message = installation_failed_spap_desc_0.replace("\n", "
"); + String MessageColor = "FFFFFF"; + Signature_Check.setMessage(Html.fromHtml(""+Message+"")); + Signature_Check.setPositiveButton(uninstall_0, new DialogInterface.OnClickListener(){ + @Override + public void onClick(DialogInterface Signature_Check, int p) { + AlertDialog.setCancelable(true); + try { + Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.music")); + startActivity(intent); + } + catch(Exception e) { + } + } + }); + Signature_Check.setNeutralButton(close_0, new DialogInterface.OnClickListener(){ + @Override + public void onClick(DialogInterface Signature_Check, int p) { + AlertDialog.setCancelable(true); + } + }); + AlertDialog = Signature_Check.create(); + AlertDialog.setCancelable(false); + _AlertDialog_Color(); + AlertDialog.show(); } - catch(Exception e) { + } + } + else { + if (Downloaded_Version < Installed_Version) { + if (!MainActivity.this.isFinishing()) { + final AlertDialog.Builder Downgrade_Check = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); + String Title = "".concat(installation_failed_0.concat("")); + String TitleColor = "1DB954"; + Downgrade_Check.setTitle(Html.fromHtml(""+Title+"")); + String Message = installation_failed_desc_0.replace("\n", "
"); + String MessageColor = "FFFFFF"; + Downgrade_Check.setMessage(Html.fromHtml(""+Message+"")); + Downgrade_Check.setPositiveButton(uninstall_0, new DialogInterface.OnClickListener(){ + @Override + public void onClick(DialogInterface Downgrade_Check, int p) { + AlertDialog.setCancelable(true); + try { + Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.music")); + startActivity(intent); + } + catch(Exception e) { + } + } + }); + Downgrade_Check.setNeutralButton(close_0, new DialogInterface.OnClickListener(){ + @Override + public void onClick(DialogInterface Downgrade_Check, int p) { + AlertDialog.setCancelable(true); + } + }); + AlertDialog = Downgrade_Check.create(); + AlertDialog.setCancelable(false); + _AlertDialog_Color(); + AlertDialog.show(); } } - }); - Downgrade_Check.setNeutralButton(close_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Downgrade_Check, int p) { - AlertDialog.setCancelable(true); - } - }); - AlertDialog = Downgrade_Check.create(); - AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); - AlertDialog.show(); + } } - } + }); + Success_Download.setNeutralButton(later_0, new DialogInterface.OnClickListener(){ + @Override + public void onClick(DialogInterface Success_Download, int p) { + AlertDialog.setCancelable(true); + _Reminder(); + } + }); + AlertDialog = Success_Download.create(); + AlertDialog.setCancelable(false); + _AlertDialog_Color(); + AlertDialog.show(); } - public void _Extension_7() { + public void _Extension_2() { final AlertDialog.Builder Success_Download = new AlertDialog.Builder(MainActivity.this, R.style.Other_Dialog); String Title = "".concat(download_success_0.concat("")); String TitleColor = "1DB954"; @@ -17203,14 +16356,15 @@ public class MainActivity extends AppCompatActivity { @Override public void onClick(DialogInterface Success_Download, int p) { AlertDialog.setCancelable(true); - if ((Installed_Version_Lite < Downloaded_Version_Lite) || ((Downloaded_Version_Lite > Installed_Version_Lite) || ((Installed_Version_Lite == Downloaded_Version_Lite) || Installed_Checker_Lite.equals("false")))) { - if (getILSignature(getApplicationContext()).equals(getDLSignature(getApplicationContext())) || Installed_Checker_Lite.equals("false")) { + _Downgrade_Checker(); + if ((Installed_Version_Cloned < Downloaded_Version_Cloned) || ((Downloaded_Version_Cloned > Installed_Version_Cloned) || ((Installed_Version_Cloned == Downloaded_Version_Cloned) || Installed_Checker_Cloned.equals("false")))) { + if (getICSignature(getApplicationContext()).equals(getDCSignature(getApplicationContext())) || Installed_Checker_Cloned.equals("false")) { StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); StrictMode.setVmPolicy(builder.build()); if(android.os.Build.VERSION.SDK_INT >= 29){ try { - Intent intent = new Intent(Intent.ACTION_INSTALL_PACKAGE); - intent.setDataAndType(FileProvider.getUriForFile(MainActivity.this, "com.xc3fff0e.xmanager.provider", new File("/storage/emulated/0/Download/Patched Lite (xManager).apk")), "application/vnd.android.package-archive"); - intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); + Intent intent = new Intent(Intent.ACTION_VIEW); + intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); + intent.setDataAndType(FileProvider.getUriForFile(MainActivity.this, "com.xc3fff0e.xmanager.provider", new File("/storage/emulated/0/Download/Patched Cloned (xManager).apk")), "application/vnd.android.package-archive"); startActivity(intent); _Reminder(); } @@ -17218,8 +16372,8 @@ public class MainActivity extends AppCompatActivity { } } else { try { - Intent intent = new Intent(Intent.ACTION_INSTALL_PACKAGE); - intent.setDataAndType(Uri.fromFile(new File("/storage/emulated/0/Download/Patched Lite (xManager).apk")), "application/vnd.android.package-archive"); + Intent intent = new Intent(Intent.ACTION_VIEW); + intent.setDataAndType(Uri.fromFile(new File("/storage/emulated/0/Download/Patched Cloned (xManager).apk")), "application/vnd.android.package-archive"); startActivity(intent); _Reminder(); } @@ -17240,7 +16394,7 @@ public class MainActivity extends AppCompatActivity { public void onClick(DialogInterface Signature_Check, int p) { AlertDialog.setCancelable(true); try { - Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.lite")); + Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.musix")); startActivity(intent); } catch(Exception e) { @@ -17255,14 +16409,14 @@ public class MainActivity extends AppCompatActivity { }); AlertDialog = Signature_Check.create(); AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); + _AlertDialog_Color(); AlertDialog.show(); } } } else { if (!MainActivity.this.isFinishing()) { - if (Downloaded_Version_Lite < Installed_Version_Lite) { + if (Downloaded_Version_Cloned < Installed_Version_Cloned) { final AlertDialog.Builder Downgrade_Check = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); String Title = "".concat(installation_failed_0.concat("")); String TitleColor = "1DB954"; @@ -17275,7 +16429,7 @@ public class MainActivity extends AppCompatActivity { public void onClick(DialogInterface Downgrade_Check, int p) { AlertDialog.setCancelable(true); try { - Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.lite")); + Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.musix")); startActivity(intent); } catch(Exception e) { @@ -17290,7 +16444,7 @@ public class MainActivity extends AppCompatActivity { }); AlertDialog = Downgrade_Check.create(); AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); + _AlertDialog_Color(); AlertDialog.show(); } } @@ -17306,369 +16460,436 @@ public class MainActivity extends AppCompatActivity { }); AlertDialog = Success_Download.create(); AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); + _AlertDialog_Color(); AlertDialog.show(); } - public void _Permission() { - if (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE) == PackageManager.PERMISSION_DENIED - || ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_DENIED) { - _Storage_Permission(); - } + public void _Extension_3() { + final AlertDialog.Builder Success_Download = new AlertDialog.Builder(MainActivity.this, R.style.Other_Dialog); + String Title = "".concat(download_success_0.concat("")); + String TitleColor = "1DB954"; + Success_Download.setTitle(Html.fromHtml(""+Title+"")); + Success_Download.setPositiveButton(install_update_0, new DialogInterface.OnClickListener(){ + @Override + public void onClick(DialogInterface Success_Download, int p) { + AlertDialog.setCancelable(true); + StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); StrictMode.setVmPolicy(builder.build()); + if(android.os.Build.VERSION.SDK_INT >= 29){ + try { + Intent intent = new Intent(Intent.ACTION_VIEW); + intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); + intent.setDataAndType(FileProvider.getUriForFile(MainActivity.this, "com.xc3fff0e.xmanager.provider", new File("/storage/emulated/0/Download/xManager Update.apk")), "application/vnd.android.package-archive"); + startActivity(intent); + } + catch(Exception e) { + } + } else { + try { + Intent intent = new Intent(Intent.ACTION_VIEW); + intent.setDataAndType(Uri.fromFile(new File("/storage/emulated/0/Download/xManager Update.apk")), "application/vnd.android.package-archive"); + startActivity(intent); + } + catch(Exception e) { + } + } + } + }); + Success_Download.setNeutralButton(later_0, new DialogInterface.OnClickListener(){ + @Override + public void onClick(DialogInterface Success_Download, int p) { + AlertDialog.setCancelable(true); + } + }); + AlertDialog = Success_Download.create(); + AlertDialog.setCancelable(false); + _AlertDialog_Color(); + AlertDialog.show(); + } - public void requestReadExternalStorage() { - ActivityCompat.requestPermissions(this, new String[] {Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.WRITE_EXTERNAL_STORAGE}, 1000); - } - @Override - public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) { - super.onRequestPermissionsResult(requestCode, permissions, grantResults); - if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { - try { - _Installation_Permission(); - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Permission Granted", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); - } catch (Exception e) { - } - } else { - final AlertDialog.Builder Storage_Failed = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); - String Message = "Storage permission not granted. You need to manually enable it."; - String MessageColor = "FFFFFF"; - Storage_Failed.setMessage(Html.fromHtml(""+Message+"")); - Storage_Failed.setPositiveButton("SETUP", new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Storage_Failed, int p) { - AlertDialog.setCancelable(true); - if (SDK_INT >= Build.VERSION_CODES.R) { - try { - Intent intent = new Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS); - intent.addCategory("android.intent.category.DEFAULT"); - intent.setData(Uri.parse(String.format("package:%s",getApplicationContext().getPackageName()))); - startActivityForResult(intent, 1000); - } catch (Exception e) { - Intent intent = new Intent(); - intent.setAction(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS); - startActivityForResult(intent, 1000); - } - } - if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { - final AlertDialog.Builder Storage = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); - AlertDialog = Storage.create(); - AlertDialog.dismiss(); - }else{ - _Permission(); - } - } - }); - try { - AlertDialog = Storage_Failed.create(); - AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); - AlertDialog.show(); - com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Permission Denied", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); - } catch (Exception e) { - } - } - + public void _Extension_4() { + if ((Installed_Version < Downloaded_Version) || ((Downloaded_Version > Installed_Version) || ((Installed_Version == Downloaded_Version) || Installed_Checker.equals("false")))) { + if (getISignature(getApplicationContext()).equals(getDSignature(getApplicationContext())) || Installed_Checker.equals("false")) { + StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); StrictMode.setVmPolicy(builder.build()); + if(android.os.Build.VERSION.SDK_INT >= 29){ + try { + Intent intent = new Intent(Intent.ACTION_VIEW); + intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); + intent.setDataAndType(FileProvider.getUriForFile(MainActivity.this, "com.xc3fff0e.xmanager.provider", new File("/storage/emulated/0/Download/Patched (xManager).apk")), "application/vnd.android.package-archive"); + startActivity(intent); + _Reminder(); + } + catch(Exception e) { + SketchwareUtil.CustomToast(getApplicationContext(), "Installation Failed", 0xFF000000, 14, 0xFFE0E0E0, 30, SketchwareUtil.BOTTOM); + } + } else { + try { + Intent intent = new Intent(Intent.ACTION_VIEW); + intent.setDataAndType(Uri.fromFile(new File("/storage/emulated/0/Download/Patched (xManager).apk")), "application/vnd.android.package-archive"); + startActivity(intent); + _Reminder(); + } + catch(Exception e) { + SketchwareUtil.CustomToast(getApplicationContext(), "Installation Failed", 0xFF000000, 14, 0xFFE0E0E0, 30, SketchwareUtil.BOTTOM); + } + } + } else { + final AlertDialog.Builder Signature_Check = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); + String Title = "".concat(installation_failed_0.concat("")); + String TitleColor = "1DB954"; + Signature_Check.setTitle(Html.fromHtml(""+Title+"")); + String Message = installation_failed_spap_desc_0.replace("\n", "
"); + String MessageColor = "FFFFFF"; + Signature_Check.setMessage(Html.fromHtml(""+Message+"")); + Signature_Check.setPositiveButton(uninstall_0, new DialogInterface.OnClickListener(){ + @Override + public void onClick(DialogInterface Signature_Check, int p) { + AlertDialog.setCancelable(true); + try { + Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.music")); + startActivity(intent); + } + catch(Exception e) { + } + } + }); + Signature_Check.setNeutralButton(close_0, new DialogInterface.OnClickListener(){ + @Override + public void onClick(DialogInterface Signature_Check, int p) { + AlertDialog.setCancelable(true); + } + }); + AlertDialog = Signature_Check.create(); + AlertDialog.setCancelable(false); + _AlertDialog_Color(); + AlertDialog.show(); + } + } + else { + if (Downloaded_Version < Installed_Version) { + final AlertDialog.Builder Downgrade_Check = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); + String Title = "".concat(installation_failed_0.concat("")); + String TitleColor = "1DB954"; + Downgrade_Check.setTitle(Html.fromHtml(""+Title+"")); + String Message = installation_failed_desc_0.replace("\n", "
"); + String MessageColor = "FFFFFF"; + Downgrade_Check.setMessage(Html.fromHtml(""+Message+"")); + Downgrade_Check.setPositiveButton(uninstall_0, new DialogInterface.OnClickListener(){ + @Override + public void onClick(DialogInterface Downgrade_Check, int p) { + AlertDialog.setCancelable(true); + try { + Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.music")); + startActivity(intent); + } + catch(Exception e) { + } + } + }); + Downgrade_Check.setNeutralButton(close_0, new DialogInterface.OnClickListener(){ + @Override + public void onClick(DialogInterface Downgrade_Check, int p) { + AlertDialog.setCancelable(true); + } + }); + AlertDialog = Downgrade_Check.create(); + AlertDialog.setCancelable(false); + _AlertDialog_Color(); + AlertDialog.show(); + } + } + _Downgrade_Checker(); + } - public void _Storage_Permission() { - final AlertDialog.Builder Storage = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); - String Title = "".concat("STORAGE PERMISSION".concat("")); - String TitleColor = "1DB954"; - Storage.setTitle(Html.fromHtml(""+Title+"")); - String Message = "xManager needs this permission to utilize the APK Location feature and to save the downloaded patched within that folder."; - String MessageColor = "FFFFFF"; - Storage.setMessage(Html.fromHtml(""+Message+"")); - Storage.setPositiveButton("SETUP", new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Storage, int p) { - AlertDialog.setCancelable(true); - try { - requestReadExternalStorage(); - } catch (Exception e) { - } + public void _Extension_5() { + if ((Installed_Version_Cloned < Downloaded_Version_Cloned) || ((Downloaded_Version_Cloned > Installed_Version_Cloned) || ((Installed_Version_Cloned == Downloaded_Version_Cloned) || Installed_Checker_Cloned.equals("false")))) { + if (getICSignature(getApplicationContext()).equals(getDCSignature(getApplicationContext())) || Installed_Checker_Cloned.equals("false")) { + StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); StrictMode.setVmPolicy(builder.build()); + if(android.os.Build.VERSION.SDK_INT >= 29){ + try { + Intent intent = new Intent(Intent.ACTION_VIEW); + intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); + intent.setDataAndType(FileProvider.getUriForFile(MainActivity.this, "com.xc3fff0e.xmanager.provider", new File("/storage/emulated/0/Download/Patched Cloned (xManager).apk")), "application/vnd.android.package-archive"); + startActivity(intent); + _Reminder(); + } + catch(Exception e) { + SketchwareUtil.CustomToast(getApplicationContext(), "Installation Failed", 0xFF000000, 14, 0xFFE0E0E0, 30, SketchwareUtil.BOTTOM); + } + } else { + try { + Intent intent = new Intent(Intent.ACTION_VIEW); + intent.setDataAndType(Uri.fromFile(new File("/storage/emulated/0/Download/Patched Cloned (xManager).apk")), "application/vnd.android.package-archive"); + startActivity(intent); + _Reminder(); + } + catch(Exception e) { + SketchwareUtil.CustomToast(getApplicationContext(), "Installation Failed", 0xFF000000, 14, 0xFFE0E0E0, 30, SketchwareUtil.BOTTOM); + } + } + } else { + final AlertDialog.Builder Signature_Check = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); + String Title = "".concat(installation_failed_0.concat("")); + String TitleColor = "1DB954"; + Signature_Check.setTitle(Html.fromHtml(""+Title+"")); + String Message = installation_failed_cloned_desc_0.replace("\n", "
"); + String MessageColor = "FFFFFF"; + Signature_Check.setMessage(Html.fromHtml(""+Message+"")); + Signature_Check.setPositiveButton(uninstall_0, new DialogInterface.OnClickListener(){ + @Override + public void onClick(DialogInterface Signature_Check, int p) { + AlertDialog.setCancelable(true); + try { + Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.musix")); + startActivity(intent); + } + catch(Exception e) { + } + } + }); + Signature_Check.setNeutralButton(close_0, new DialogInterface.OnClickListener(){ + @Override + public void onClick(DialogInterface Signature_Check, int p) { + AlertDialog.setCancelable(true); + } + }); + AlertDialog = Signature_Check.create(); + AlertDialog.setCancelable(false); + _AlertDialog_Color(); + AlertDialog.show(); + } + } + else { + if (Downloaded_Version_Cloned < Installed_Version_Cloned) { + final AlertDialog.Builder Downgrade_Check = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); + String Title = "".concat(installation_failed_0.concat("")); + String TitleColor = "1DB954"; + Downgrade_Check.setTitle(Html.fromHtml(""+Title+"")); + String Message = installation_failed_desc_0.replace("\n", "
"); + String MessageColor = "FFFFFF"; + Downgrade_Check.setMessage(Html.fromHtml(""+Message+"")); + Downgrade_Check.setPositiveButton(uninstall_0, new DialogInterface.OnClickListener(){ + @Override + public void onClick(DialogInterface Downgrade_Check, int p) { + AlertDialog.setCancelable(true); + try { + Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.musix")); + startActivity(intent); + } + catch(Exception e) { + } + } + }); + Downgrade_Check.setNeutralButton(close_0, new DialogInterface.OnClickListener(){ + @Override + public void onClick(DialogInterface Downgrade_Check, int p) { + AlertDialog.setCancelable(true); + } + }); + AlertDialog = Downgrade_Check.create(); + AlertDialog.setCancelable(false); + _AlertDialog_Color(); + AlertDialog.show(); } - }); - AlertDialog = Storage.create(); - AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); - AlertDialog.show(); + } + _Downgrade_Checker(); } - public void _Installation_Permission() { - final AlertDialog.Builder Installation = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); - String Title = "".concat("INSTALLATION PERMISSION".concat("")); - String TitleColor = "1DB954"; - Installation.setTitle(Html.fromHtml(""+Title+"")); - String Message = "xManager needs this permission to install the downloaded patched."; - String MessageColor = "FFFFFF"; - Installation.setMessage(Html.fromHtml(""+Message+"")); - Installation.setPositiveButton("SETUP", new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Installation, int p) { - AlertDialog.setCancelable(true); - try { - startActivity(new Intent(android.provider.Settings.ACTION_MANAGE_UNKNOWN_APP_SOURCES, Uri.parse("package:com.xc3fff0e.xmanager"))); - } catch (Exception e) { - } - } - }); - AlertDialog = Installation.create(); - AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); - AlertDialog.show(); - + public void _Reinitialize() { + manager_lang_1.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_2.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_3.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_4.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_5.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_6.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_7.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_8.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_9.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_10.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_11.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_12.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_13.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_14.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_15.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_16.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_17.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_18.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_19.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_20.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_21.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_22.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_23.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_24.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_25.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_26.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_27.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_28.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_29.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_30.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_31.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_32.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_33.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_34.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_35.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_36.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_37.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_38.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_39.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_40.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_41.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_42.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_43.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + manager_lang_44.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_1.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_2.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_3.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_4.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_5.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_6.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_7.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_8.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_9.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_10.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_11.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_12.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_13.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_14.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_15.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_16.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_17.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_18.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_19.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_20.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_21.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_22.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_23.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_24.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_25.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_26.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_27.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_28.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_29.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_30.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_31.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_32.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_33.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_34.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_35.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_36.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_37.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_38.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_39.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_40.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_41.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_42.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_43.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); + translator_44.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); } - public void _Animation_4() { - Animation a; - a = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left); - a.setDuration(200); box_settings_close.startAnimation(a); - a = null; - Animation b; - b = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left); - b.setDuration(300); title_header.startAnimation(b); - b = null; - Animation c; - c = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left); - c.setDuration(400); main_box_16.startAnimation(c); - c = null; - Animation d; - d = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left); - d.setDuration(500); main_box_18.startAnimation(d); - d = null; - Animation e; - e = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left); - e.setDuration(600); main_box_9.startAnimation(e); - e = null; + public void _Reminder() { + if (DISABLE_NOTIFICATION.getString("DISABLE", "").equals("ON")) { + disable_notification_switch.setChecked(true); + } + else { + if (DISABLE_NOTIFICATION.getString("DISABLE", "").equals("OFF")) { + disable_notification_switch.setChecked(false); + _Install_Reminder(); + } + } } - public void _Layout_Transition() { - if (Build.VERSION.SDK_INT >= 4.1) { - ((ViewGroup) findViewById(R.id.main_box_1)).getLayoutTransition() - .enableTransitionType(LayoutTransition.CHANGING); - - ((ViewGroup) findViewById(R.id.main_box_2)).getLayoutTransition() - .enableTransitionType(LayoutTransition.CHANGING); - - ((ViewGroup) findViewById(R.id.main_box_3)).getLayoutTransition() - .enableTransitionType(LayoutTransition.CHANGING); - - ((ViewGroup) findViewById(R.id.main_box_12)).getLayoutTransition() - .enableTransitionType(LayoutTransition.CHANGING); - - ((ViewGroup) findViewById(R.id.main_box_7)).getLayoutTransition() - .enableTransitionType(LayoutTransition.CHANGING); - - ((ViewGroup) findViewById(R.id.main_box_19)).getLayoutTransition() - .enableTransitionType(LayoutTransition.CHANGING); - - ((ViewGroup) findViewById(R.id.main_box_6)).getLayoutTransition() - .enableTransitionType(LayoutTransition.CHANGING); - - ((ViewGroup) findViewById(R.id.box_sub_header)).getLayoutTransition() - .enableTransitionType(LayoutTransition.CHANGING); - - ((ViewGroup) findViewById(R.id.main_box_4)).getLayoutTransition() - .enableTransitionType(LayoutTransition.CHANGING); - - ((ViewGroup) findViewById(R.id.main_box_15)).getLayoutTransition() - .enableTransitionType(LayoutTransition.CHANGING); - - ((ViewGroup) findViewById(R.id.box_theme_switch)).getLayoutTransition() - .enableTransitionType(LayoutTransition.CHANGING); - - ((ViewGroup) findViewById(R.id.box_language_switch)).getLayoutTransition() - .enableTransitionType(LayoutTransition.CHANGING); - } - + public void _Signature_Checker_Lite() { + } + public String getILSignature(Context context) { + try { + android.content.pm.PackageInfo packageInfo = context.getPackageManager().getPackageInfo("com.spotify.lite", PackageManager.GET_SIGNATURES); + for (android.content.pm.Signature signature : packageInfo.signatures) { + String il_sha1 = geti_SHA1_(signature.toByteArray()); + return il_sha1; + } + } catch (android.content.pm.PackageManager.NameNotFoundException e) { + } + return ""; + } + + public String getil_SHA1_(byte[] sig) { + try { + java.security.MessageDigest digest = java.security.MessageDigest.getInstance("SHA1"); + digest.update(sig); + byte[] hashtext = digest.digest(); + return il_bytes_To_Hex_(hashtext); + } catch (java.security.NoSuchAlgorithmException e) { + } + return ""; } - - public void _Reboot() { - Timer = new TimerTask() { - @Override - public void run() { - runOnUiThread(new Runnable() { - @Override - public void run() { - cloned_version_switch.setChecked(true); - Timer = new TimerTask() { - @Override - public void run() { - runOnUiThread(new Runnable() { - @Override - public void run() { - cloned_version_switch.setChecked(false); - Timer = new TimerTask() { - @Override - public void run() { - runOnUiThread(new Runnable() { - @Override - public void run() { - experiment_version_switch.setChecked(true); - Timer = new TimerTask() { - @Override - public void run() { - runOnUiThread(new Runnable() { - @Override - public void run() { - experiment_version_switch.setChecked(false); - Timer = new TimerTask() { - @Override - public void run() { - runOnUiThread(new Runnable() { - @Override - public void run() { - list_auto_refresh_switch.setChecked(true); - Timer = new TimerTask() { - @Override - public void run() { - runOnUiThread(new Runnable() { - @Override - public void run() { - list_auto_refresh_switch.setChecked(false); - Timer = new TimerTask() { - @Override - public void run() { - runOnUiThread(new Runnable() { - @Override - public void run() { - force_auto_install_switch.setChecked(true); - Timer = new TimerTask() { - @Override - public void run() { - runOnUiThread(new Runnable() { - @Override - public void run() { - force_auto_install_switch.setChecked(false); - Timer = new TimerTask() { - @Override - public void run() { - runOnUiThread(new Runnable() { - @Override - public void run() { - disable_reward_ad_switch.setChecked(true); - Timer = new TimerTask() { - @Override - public void run() { - runOnUiThread(new Runnable() { - @Override - public void run() { - disable_reward_ad_switch.setChecked(false); - } - }); - } - }; - _timer.schedule(Timer, (int)(900)); - } - }); - } - }; - _timer.schedule(Timer, (int)(700)); - } - }); - } - }; - _timer.schedule(Timer, (int)(850)); - } - }); - } - }; - _timer.schedule(Timer, (int)(650)); - } - }); - } - }; - _timer.schedule(Timer, (int)(800)); - } - }); - } - }; - _timer.schedule(Timer, (int)(600)); - } - }); - } - }; - _timer.schedule(Timer, (int)(750)); - } - }); - } - }; - _timer.schedule(Timer, (int)(550)); - } - }); - } - }; - _timer.schedule(Timer, (int)(700)); + public String il_bytes_To_Hex_(byte[] bytes) { + final char[] hexArray = { '0', '1', '2', '3', '4', '5', '6', '7', '8', + '9', 'A', 'B', 'C', 'D', 'E', 'F' }; + char[] hexChars = new char[bytes.length * 2]; + int v; + for (int j = 0; j < bytes.length; j++) { + v = bytes[j] & 0xFF; + hexChars[j * 2] = hexArray[v >>> 4]; + hexChars[j * 2 + 1] = hexArray[v & 0x0F]; + } + return new String(hexChars); + } + { + + + } + public String getDLSignature(Context context) { + try { + android.content.pm.PackageInfo packageArchiveInfo = context.getPackageManager().getPackageArchiveInfo(apk_path_location.getText().toString().concat("Patched Lite (xManager).apk"), PackageManager.GET_SIGNATURES); + for (android.content.pm.Signature signature : packageArchiveInfo.signatures) { + String dl_sha1 = getd_SHA1_(signature.toByteArray()); + return dl_sha1; } - }); + } catch (Exception e) { } - }; - _timer.schedule(Timer, (int)(500)); + return ""; } + public String getdl_SHA1_(byte[] sig) { + try { + java.security.MessageDigest digest = java.security.MessageDigest.getInstance("SHA1"); + digest.update(sig); + byte[] hashtext = digest.digest(); + return dl_bytes_To_Hex_(hashtext); + } catch (java.security.NoSuchAlgorithmException e) { + } + return ""; + } - public void _Refetch() { - final ProgressDialog prog = new ProgressDialog(MainActivity.this, R.style.Intro_Dialog); - prog.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); - prog.setMax(100); - prog.setMessage("Checking cached datas..."); - prog.setIndeterminate(true); - prog.setCancelable(false); - prog.show(); - Timer = new TimerTask() { - @Override - public void run() { - runOnUiThread(new Runnable() { - @Override - public void run() { - try { - REFETCH.edit().putString("REFETCH", "X").commit(); - box_reboot.performClick(); - prog.dismiss(); - } - catch(Exception e) { - } - } - }); - } - }; - _timer.schedule(Timer, (int)(1000)); - if (Build.VERSION.SDK_INT > Build.VERSION_CODES.KITKAT) { - Window w =MainActivity.this.getWindow(); - w.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); - w.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); w.setStatusBarColor(0xFF171717); - } - title_header.setTextColor(0xFF1DB954); - title_header_separator.setTextColor(0xFFFFFFFF); - title_header_beta.setTextColor(0xFFFFFFFF); - box_header.setBackgroundColor(0xFF171717); - box_header.setVisibility(View.GONE); - main_body_optimization.setVisibility(View.VISIBLE); - main_scroll_settings.setVisibility(View.GONE); - main_scroll_about.setVisibility(View.GONE); - main_refresh_layout.setVisibility(View.GONE); - box_experiment.setVisibility(View.GONE); - box_switch.setVisibility(View.GONE); - box_update.setVisibility(View.GONE); - icon_experiment.setAlpha((float)(1.0d)); - icon_switch.setAlpha((float)(1.0d)); - icon_update.setAlpha((float)(1.0d)); - main_body.setAlpha((float)(0.50d)); - + public String dl_bytes_To_Hex_(byte[] bytes) { + final char[] hexArray = { '0', '1', '2', '3', '4', '5', '6', '7', '8', + '9', 'A', 'B', 'C', 'D', 'E', 'F' }; + char[] hexChars = new char[bytes.length * 2]; + int v; + for (int j = 0; j < bytes.length; j++) { + v = bytes[j] & 0xFF; + hexChars[j * 2] = hexArray[v >>> 4]; + hexChars[j * 2 + 1] = hexArray[v & 0x0F]; + } + return new String(hexChars); + } + { + + } - public void _Download_Wave(final String _url, final String _path) { + public void _Download_Lite(final String _url, final String _path) { android.net.ConnectivityManager connMgr = (android.net.ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE); android.net.NetworkInfo networkInfo = connMgr.getActiveNetworkInfo(); if (networkInfo != null && networkInfo.isConnected()) { @@ -17683,13 +16904,48 @@ public class MainActivity extends AppCompatActivity { request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_HIDDEN); request.setMimeType("application/vnd.android.package-archive"); request.allowScanningByMediaScanner(); - request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, "Patched Wave (xManager).apk"); + request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, "Patched Lite (xManager).apk"); final DownloadManager manager = (DownloadManager) getSystemService(Context.DOWNLOAD_SERVICE); final long downloadId = manager.enqueue(request); final ProgressDialog prog = new ProgressDialog(MainActivity.this, R.style.Progress_Dialog); final ProgressDialog check = new ProgressDialog(MainActivity.this, R.style.Progress_Dialog); - prog.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); - check.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); + if (THEME.getString("THEME", "").equals("14")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_green); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_green); + } else { + if (THEME.getString("THEME", "").equals("15")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_blue); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_blue); + } else { + if (THEME.getString("THEME", "").equals("16")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_red); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_red); + } else { + if (THEME.getString("THEME", "").equals("17")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_orange); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_orange);; + } else { + if (THEME.getString("THEME", "").equals("18")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_pink); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_pink); + } else { + if (THEME.getString("THEME", "").equals("19")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_purple); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_purple); + } else { + if (THEME.getString("THEME", "").equals("20")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_cyan); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_cyan); + } else { + prog.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); + check.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); + } + } + } + } + } + } + } Thread progress = new Thread() { @Override public void run() { @@ -17879,12 +17135,12 @@ public class MainActivity extends AppCompatActivity { @Override public void run() { try { - FileUtil.copyFile("/storage/emulated/0/Download/Patched Wave (xManager).apk", apk_path_location.getText().toString().concat("Patched Wave (xManager).apk")); + FileUtil.copyFile("/storage/emulated/0/Download/Patched Lite (xManager).apk", apk_path_location.getText().toString().concat("Patched Lite (xManager).apk")); } catch(Exception e) { } if (!MainActivity.this.isFinishing()) { - _Extension_9(); + _Extension_7(); prog.dismiss(); } prog.dismiss(); @@ -17909,7 +17165,7 @@ public class MainActivity extends AppCompatActivity { } - public void _Download_Install_Wave(final String _url, final String _path) { + public void _Download_Install_Lite(final String _url, final String _path) { android.net.ConnectivityManager connMgr = (android.net.ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE); android.net.NetworkInfo networkInfo = connMgr.getActiveNetworkInfo(); if (networkInfo != null && networkInfo.isConnected()) { @@ -17924,13 +17180,48 @@ public class MainActivity extends AppCompatActivity { request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_HIDDEN); request.setMimeType("application/vnd.android.package-archive"); request.allowScanningByMediaScanner(); - request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, "Patched Wave (xManager).apk"); + request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, "Patched Lite (xManager).apk"); final DownloadManager manager = (DownloadManager) getSystemService(Context.DOWNLOAD_SERVICE); final long downloadId = manager.enqueue(request); final ProgressDialog prog = new ProgressDialog(MainActivity.this, R.style.Progress_Dialog); final ProgressDialog check = new ProgressDialog(MainActivity.this, R.style.Progress_Dialog); - prog.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); - check.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); + if (THEME.getString("THEME", "").equals("14")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_green); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_green); + } else { + if (THEME.getString("THEME", "").equals("15")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_blue); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_blue); + } else { + if (THEME.getString("THEME", "").equals("16")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_red); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_red); + } else { + if (THEME.getString("THEME", "").equals("17")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_orange); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_orange);; + } else { + if (THEME.getString("THEME", "").equals("18")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_pink); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_pink); + } else { + if (THEME.getString("THEME", "").equals("19")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_purple); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_purple); + } else { + if (THEME.getString("THEME", "").equals("20")) { + prog.getWindow().setBackgroundDrawableResource(R.drawable.light_cyan); + check.getWindow().setBackgroundDrawableResource(R.drawable.light_cyan); + } else { + prog.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); + check.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); + } + } + } + } + } + } + } Thread progress = new Thread() { @Override public void run() { @@ -18120,7 +17411,7 @@ public class MainActivity extends AppCompatActivity { @Override public void run() { try { - FileUtil.copyFile("/storage/emulated/0/Download/Patched Wave (xManager).apk", apk_path_location.getText().toString().concat("Patched Wave (xManager).apk")); + FileUtil.copyFile("/storage/emulated/0/Download/Patched Lite (xManager).apk", apk_path_location.getText().toString().concat("Patched Lite (xManager).apk")); } catch(Exception e) { } @@ -18132,14 +17423,15 @@ public class MainActivity extends AppCompatActivity { public void run() { prog.dismiss(); check.dismiss(); - if ((Installed_Version_Wave < Downloaded_Version_Wave) || ((Downloaded_Version_Wave > Installed_Version_Wave) || ((Installed_Version_Wave == Downloaded_Version_Wave) || Installed_Checker_Wave.equals("false")))) { - if (getIWSignature(getApplicationContext()).equals(getDWSignature(getApplicationContext())) || Installed_Checker_Wave.equals("false")) { + _Downgrade_Checker(); + if ((Installed_Version_Lite < Downloaded_Version_Lite) || ((Downloaded_Version_Lite > Installed_Version_Lite) || ((Installed_Version_Lite == Downloaded_Version_Lite) || Installed_Checker_Lite.equals("false")))) { + if (getILSignature(getApplicationContext()).equals(getDLSignature(getApplicationContext())) || Installed_Checker_Lite.equals("false")) { StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); StrictMode.setVmPolicy(builder.build()); if(android.os.Build.VERSION.SDK_INT >= 29){ try { Intent intent = new Intent(Intent.ACTION_VIEW); intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); - intent.setDataAndType(FileProvider.getUriForFile(MainActivity.this, "com.xc3fff0e.xmanager.provider", new File("/storage/emulated/0/Download/Patched Wave (xManager).apk")), "application/vnd.android.package-archive"); + intent.setDataAndType(FileProvider.getUriForFile(MainActivity.this, "com.xc3fff0e.xmanager.provider", new File("/storage/emulated/0/Download/Patched Lite (xManager).apk")), "application/vnd.android.package-archive"); startActivity(intent); _Reminder(); } @@ -18148,7 +17440,7 @@ public class MainActivity extends AppCompatActivity { } else { try { Intent intent = new Intent(Intent.ACTION_VIEW); - intent.setDataAndType(Uri.fromFile(new File("/storage/emulated/0/Download/Patched Wave (xManager).apk")), "application/vnd.android.package-archive"); + intent.setDataAndType(Uri.fromFile(new File("/storage/emulated/0/Download/Patched Lite (xManager).apk")), "application/vnd.android.package-archive"); startActivity(intent); _Reminder(); } @@ -18169,7 +17461,7 @@ public class MainActivity extends AppCompatActivity { public void onClick(DialogInterface Signature_Check, int p) { AlertDialog.setCancelable(true); try { - Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.aspiro.tidal")); + Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.lite")); startActivity(intent); } catch(Exception e) { @@ -18190,7 +17482,7 @@ public class MainActivity extends AppCompatActivity { } } else { - if (Downloaded_Version_Wave < Installed_Version_Wave) { + if (Downloaded_Version_Lite < Installed_Version_Lite) { if (!MainActivity.this.isFinishing()) { final AlertDialog.Builder Downgrade_Check = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); String Title = "".concat(installation_failed_0.concat("")); @@ -18204,7 +17496,7 @@ public class MainActivity extends AppCompatActivity { public void onClick(DialogInterface Downgrade_Check, int p) { AlertDialog.setCancelable(true); try { - Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.aspiro.tidal")); + Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.lite")); startActivity(intent); } catch(Exception e) { @@ -18249,97 +17541,15 @@ public class MainActivity extends AppCompatActivity { } - public void _Signature_Checker_Wave() { - } - public String getIWSignature(Context context) { - try { - android.content.pm.PackageInfo packageInfo = context.getPackageManager().getPackageInfo("com.aspiro.tidal", PackageManager.GET_SIGNATURES); - for (android.content.pm.Signature signature : packageInfo.signatures) { - String iw_sha1 = geti_SHA1_(signature.toByteArray()); - return iw_sha1; - } - } catch (android.content.pm.PackageManager.NameNotFoundException e) { - } - return ""; - } - - public String getiw_SHA1_(byte[] sig) { - try { - java.security.MessageDigest digest = java.security.MessageDigest.getInstance("SHA1"); - digest.update(sig); - byte[] hashtext = digest.digest(); - return iw_bytes_To_Hex_(hashtext); - } catch (java.security.NoSuchAlgorithmException e) { - } - return ""; - } - - public String iw_bytes_To_Hex_(byte[] bytes) { - final char[] hexArray = { '0', '1', '2', '3', '4', '5', '6', '7', '8', - '9', 'A', 'B', 'C', 'D', 'E', 'F' }; - char[] hexChars = new char[bytes.length * 2]; - int v; - for (int j = 0; j < bytes.length; j++) { - v = bytes[j] & 0xFF; - hexChars[j * 2] = hexArray[v >>> 4]; - hexChars[j * 2 + 1] = hexArray[v & 0x0F]; - } - return new String(hexChars); - } - { - - - } - public String getDWSignature(Context context) { - try { - android.content.pm.PackageInfo packageArchiveInfo = context.getPackageManager().getPackageArchiveInfo(apk_path_location.getText().toString().concat("Patched Wave (xManager).apk"), PackageManager.GET_SIGNATURES); - for (android.content.pm.Signature signature : packageArchiveInfo.signatures) { - String dw_sha1 = getd_SHA1_(signature.toByteArray()); - return dw_sha1; - } - } catch (Exception e) { - } - return ""; - } - - public String getdw_SHA1_(byte[] sig) { - try { - java.security.MessageDigest digest = java.security.MessageDigest.getInstance("SHA1"); - digest.update(sig); - byte[] hashtext = digest.digest(); - return dw_bytes_To_Hex_(hashtext); - } catch (java.security.NoSuchAlgorithmException e) { - } - return ""; - } - - public String dw_bytes_To_Hex_(byte[] bytes) { - final char[] hexArray = { '0', '1', '2', '3', '4', '5', '6', '7', '8', - '9', 'A', 'B', 'C', 'D', 'E', 'F' }; - char[] hexChars = new char[bytes.length * 2]; - int v; - for (int j = 0; j < bytes.length; j++) { - v = bytes[j] & 0xFF; - hexChars[j * 2] = hexArray[v >>> 4]; - hexChars[j * 2 + 1] = hexArray[v & 0x0F]; - } - return new String(hexChars); - } - { - - - } - - - public void _Extension_8() { - if ((Installed_Version_Wave < Downloaded_Version_Wave) || ((Downloaded_Version_Wave > Installed_Version_Wave) || ((Installed_Version_Wave == Downloaded_Version_Wave) || Installed_Checker_Wave.equals("false")))) { - if (getIWSignature(getApplicationContext()).equals(getDWSignature(getApplicationContext())) || Installed_Checker_Wave.equals("false")) { + public void _Extension_6() { + if ((Installed_Version_Lite < Downloaded_Version_Lite) || ((Downloaded_Version_Lite > Installed_Version_Lite) || ((Installed_Version_Lite == Downloaded_Version_Lite) || Installed_Checker_Lite.equals("false")))) { + if (getILSignature(getApplicationContext()).equals(getDLSignature(getApplicationContext())) || Installed_Checker_Lite.equals("false")) { StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); StrictMode.setVmPolicy(builder.build()); if(android.os.Build.VERSION.SDK_INT >= 29){ try { Intent intent = new Intent(Intent.ACTION_INSTALL_PACKAGE); - intent.setDataAndType(FileProvider.getUriForFile(MainActivity.this, "com.xc3fff0e.xmanager.provider", new File("/storage/emulated/0/Download/Patched Wave (xManager).apk")), "application/vnd.android.package-archive"); - intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); + intent.setDataAndType(FileProvider.getUriForFile(MainActivity.this, "com.xc3fff0e.xmanager.provider", new File("/storage/emulated/0/Download/Patched Lite (xManager).apk")), "application/vnd.android.package-archive"); + intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); startActivity(intent); _Reminder(); } @@ -18349,7 +17559,7 @@ public class MainActivity extends AppCompatActivity { } else { try { Intent intent = new Intent(Intent.ACTION_INSTALL_PACKAGE); - intent.setDataAndType(Uri.fromFile(new File("/storage/emulated/0/Download/Patched Wave (xManager).apk")), "application/vnd.android.package-archive"); + intent.setDataAndType(Uri.fromFile(new File("/storage/emulated/0/Download/Patched Lite (xManager).apk")), "application/vnd.android.package-archive"); startActivity(intent); _Reminder(); } @@ -18370,7 +17580,7 @@ public class MainActivity extends AppCompatActivity { public void onClick(DialogInterface Signature_Check, int p) { AlertDialog.setCancelable(true); try { - Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.aspiro.tidal")); + Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.lite")); startActivity(intent); } catch(Exception e) { @@ -18385,12 +17595,12 @@ public class MainActivity extends AppCompatActivity { }); AlertDialog = Signature_Check.create(); AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); + _AlertDialog_Color(); AlertDialog.show(); } } else { - if (Downloaded_Version_Wave < Installed_Version_Wave) { + if (Downloaded_Version_Lite < Installed_Version_Lite) { final AlertDialog.Builder Downgrade_Check = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); String Title = "".concat(installation_failed_0.concat("")); String TitleColor = "1DB954"; @@ -18403,7 +17613,7 @@ public class MainActivity extends AppCompatActivity { public void onClick(DialogInterface Downgrade_Check, int p) { AlertDialog.setCancelable(true); try { - Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.aspiro.tidal")); + Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.lite")); startActivity(intent); } catch(Exception e) { @@ -18418,128 +17628,480 @@ public class MainActivity extends AppCompatActivity { }); AlertDialog = Downgrade_Check.create(); AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); + _AlertDialog_Color(); AlertDialog.show(); } - } + } + _Downgrade_Checker(); + + } + + + public void _Extension_7() { + final AlertDialog.Builder Success_Download = new AlertDialog.Builder(MainActivity.this, R.style.Other_Dialog); + String Title = "".concat(download_success_0.concat("")); + String TitleColor = "1DB954"; + Success_Download.setTitle(Html.fromHtml(""+Title+"")); + Success_Download.setPositiveButton(install_now_0, new DialogInterface.OnClickListener(){ + @Override + public void onClick(DialogInterface Success_Download, int p) { + AlertDialog.setCancelable(true); + _Downgrade_Checker(); + if ((Installed_Version_Lite < Downloaded_Version_Lite) || ((Downloaded_Version_Lite > Installed_Version_Lite) || ((Installed_Version_Lite == Downloaded_Version_Lite) || Installed_Checker_Lite.equals("false")))) { + if (getILSignature(getApplicationContext()).equals(getDLSignature(getApplicationContext())) || Installed_Checker_Lite.equals("false")) { + StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); StrictMode.setVmPolicy(builder.build()); + if(android.os.Build.VERSION.SDK_INT >= 29){ + try { + Intent intent = new Intent(Intent.ACTION_INSTALL_PACKAGE); + intent.setDataAndType(FileProvider.getUriForFile(MainActivity.this, "com.xc3fff0e.xmanager.provider", new File("/storage/emulated/0/Download/Patched Lite (xManager).apk")), "application/vnd.android.package-archive"); + intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); + startActivity(intent); + _Reminder(); + } + catch(Exception e) { + } + } else { + try { + Intent intent = new Intent(Intent.ACTION_INSTALL_PACKAGE); + intent.setDataAndType(Uri.fromFile(new File("/storage/emulated/0/Download/Patched Lite (xManager).apk")), "application/vnd.android.package-archive"); + startActivity(intent); + _Reminder(); + } + catch(Exception e) { + } + } + } else { + if (!MainActivity.this.isFinishing()) { + final AlertDialog.Builder Signature_Check = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); + String Title = "".concat(installation_failed_0.concat("")); + String TitleColor = "1DB954"; + Signature_Check.setTitle(Html.fromHtml(""+Title+"")); + String Message = installation_failed_cloned_desc_0.replace("\n", "
"); + String MessageColor = "FFFFFF"; + Signature_Check.setMessage(Html.fromHtml(""+Message+"")); + Signature_Check.setPositiveButton(uninstall_0, new DialogInterface.OnClickListener(){ + @Override + public void onClick(DialogInterface Signature_Check, int p) { + AlertDialog.setCancelable(true); + try { + Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.lite")); + startActivity(intent); + } + catch(Exception e) { + } + } + }); + Signature_Check.setNeutralButton(close_0, new DialogInterface.OnClickListener(){ + @Override + public void onClick(DialogInterface Signature_Check, int p) { + AlertDialog.setCancelable(true); + } + }); + AlertDialog = Signature_Check.create(); + AlertDialog.setCancelable(false); + _AlertDialog_Color(); + AlertDialog.show(); + } + } + } + else { + if (!MainActivity.this.isFinishing()) { + if (Downloaded_Version_Lite < Installed_Version_Lite) { + final AlertDialog.Builder Downgrade_Check = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); + String Title = "".concat(installation_failed_0.concat("")); + String TitleColor = "1DB954"; + Downgrade_Check.setTitle(Html.fromHtml(""+Title+"")); + String Message = installation_failed_desc_0.replace("\n", "
"); + String MessageColor = "FFFFFF"; + Downgrade_Check.setMessage(Html.fromHtml(""+Message+"")); + Downgrade_Check.setPositiveButton(uninstall_0, new DialogInterface.OnClickListener(){ + @Override + public void onClick(DialogInterface Downgrade_Check, int p) { + AlertDialog.setCancelable(true); + try { + Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.spotify.lite")); + startActivity(intent); + } + catch(Exception e) { + } + } + }); + Downgrade_Check.setNeutralButton(close_0, new DialogInterface.OnClickListener(){ + @Override + public void onClick(DialogInterface Downgrade_Check, int p) { + AlertDialog.setCancelable(true); + } + }); + AlertDialog = Downgrade_Check.create(); + AlertDialog.setCancelable(false); + _AlertDialog_Color(); + AlertDialog.show(); + } + } + } + } + }); + Success_Download.setNeutralButton(later_0, new DialogInterface.OnClickListener(){ + @Override + public void onClick(DialogInterface Success_Download, int p) { + AlertDialog.setCancelable(true); + _Reminder(); + } + }); + AlertDialog = Success_Download.create(); + AlertDialog.setCancelable(false); + _AlertDialog_Color(); + AlertDialog.show(); + + } + + + public void _Permission() { + if (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE) == PackageManager.PERMISSION_DENIED + || ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_DENIED) { + _Storage_Permission(); + } + } + + public void requestReadExternalStorage() { + ActivityCompat.requestPermissions(this, new String[] {Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.WRITE_EXTERNAL_STORAGE}, 1000); + } + + @Override + public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) { + super.onRequestPermissionsResult(requestCode, permissions, grantResults); + if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { + try { + _Installation_Permission(); + com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Permission Granted", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); + } catch (Exception e) { + } + } else { + final AlertDialog.Builder Storage_Failed = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); + String Message = "Storage permission not granted. You need to manually enable it."; + String MessageColor = "FFFFFF"; + Storage_Failed.setMessage(Html.fromHtml(""+Message+"")); + Storage_Failed.setPositiveButton("SETUP", new DialogInterface.OnClickListener(){ + @Override + public void onClick(DialogInterface Storage_Failed, int p) { + AlertDialog.setCancelable(true); + if (SDK_INT >= Build.VERSION_CODES.R) { + try { + Intent intent = new Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS); + intent.addCategory("android.intent.category.DEFAULT"); + intent.setData(Uri.parse(String.format("package:%s",getApplicationContext().getPackageName()))); + startActivityForResult(intent, 1000); + } catch (Exception e) { + Intent intent = new Intent(); + intent.setAction(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS); + startActivityForResult(intent, 1000); + } + } + if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { + final AlertDialog.Builder Storage = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); + AlertDialog = Storage.create(); + AlertDialog.dismiss(); + }else{ + _Permission(); + } + } + }); + try { + AlertDialog = Storage_Failed.create(); + AlertDialog.setCancelable(false); + AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); + AlertDialog.show(); + com.google.android.material.snackbar.Snackbar.make(main_refresh_layout, "Permission Denied", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show(); + } catch (Exception e) { + } + } + + } + + + public void _Storage_Permission() { + final AlertDialog.Builder Storage = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); + String Title = "".concat("STORAGE PERMISSION".concat("")); + String TitleColor = "1DB954"; + Storage.setTitle(Html.fromHtml(""+Title+"")); + String Message = "xManager needs this permission to utilize the APK Location feature and to save the downloaded patched within that folder."; + String MessageColor = "FFFFFF"; + Storage.setMessage(Html.fromHtml(""+Message+"")); + Storage.setPositiveButton("SETUP", new DialogInterface.OnClickListener(){ + @Override + public void onClick(DialogInterface Storage, int p) { + AlertDialog.setCancelable(true); + try { + requestReadExternalStorage(); + } catch (Exception e) { + } + } + }); + AlertDialog = Storage.create(); + AlertDialog.setCancelable(false); + AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); + AlertDialog.show(); } - public void _Extension_9() { - final AlertDialog.Builder Success_Download = new AlertDialog.Builder(MainActivity.this, R.style.Other_Dialog); - String Title = "".concat(download_success_0.concat("")); + public void _Installation_Permission() { + final AlertDialog.Builder Installation = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); + String Title = "".concat("INSTALLATION PERMISSION".concat("")); String TitleColor = "1DB954"; - Success_Download.setTitle(Html.fromHtml(""+Title+"")); - Success_Download.setPositiveButton(install_now_0, new DialogInterface.OnClickListener(){ + Installation.setTitle(Html.fromHtml(""+Title+"")); + String Message = "xManager needs this permission to install the downloaded patched."; + String MessageColor = "FFFFFF"; + Installation.setMessage(Html.fromHtml(""+Message+"")); + Installation.setPositiveButton("SETUP", new DialogInterface.OnClickListener(){ @Override - public void onClick(DialogInterface Success_Download, int p) { + public void onClick(DialogInterface Installation, int p) { AlertDialog.setCancelable(true); - if ((Installed_Version_Wave < Downloaded_Version_Wave) || ((Downloaded_Version_Wave > Installed_Version_Wave) || ((Installed_Version_Wave == Downloaded_Version_Wave) || Installed_Checker_Wave.equals("false")))) { - if (getIWSignature(getApplicationContext()).equals(getDWSignature(getApplicationContext())) || Installed_Checker_Wave.equals("false")) { - StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); StrictMode.setVmPolicy(builder.build()); - if(android.os.Build.VERSION.SDK_INT >= 29){ - try { - Intent intent = new Intent(Intent.ACTION_INSTALL_PACKAGE); - intent.setDataAndType(FileProvider.getUriForFile(MainActivity.this, "com.xc3fff0e.xmanager.provider", new File("/storage/emulated/0/Download/Patched Wave (xManager).apk")), "application/vnd.android.package-archive"); - intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); - startActivity(intent); - _Reminder(); - } - catch(Exception e) { - } - } else { - try { - Intent intent = new Intent(Intent.ACTION_INSTALL_PACKAGE); - intent.setDataAndType(Uri.fromFile(new File("/storage/emulated/0/Download/Patched Wave (xManager).apk")), "application/vnd.android.package-archive"); - startActivity(intent); - _Reminder(); - } - catch(Exception e) { - } - } - } else { - if (!MainActivity.this.isFinishing()) { - final AlertDialog.Builder Signature_Check = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); - String Title = "".concat(installation_failed_0.concat("")); - String TitleColor = "1DB954"; - Signature_Check.setTitle(Html.fromHtml(""+Title+"")); - String Message = installation_failed_cloned_desc_0.replace("\n", "
"); - String MessageColor = "FFFFFF"; - Signature_Check.setMessage(Html.fromHtml(""+Message+"")); - Signature_Check.setPositiveButton(uninstall_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Signature_Check, int p) { - AlertDialog.setCancelable(true); - try { - Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.aspiro.tidal")); - startActivity(intent); - } - catch(Exception e) { - } - } - }); - Signature_Check.setNeutralButton(close_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Signature_Check, int p) { - AlertDialog.setCancelable(true); - } + try { + startActivity(new Intent(android.provider.Settings.ACTION_MANAGE_UNKNOWN_APP_SOURCES, Uri.parse("package:com.xc3fff0e.xmanager"))); + } catch (Exception e) { + } + } + }); + AlertDialog = Installation.create(); + AlertDialog.setCancelable(false); + AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); + AlertDialog.show(); + + } + + + public void _Animation_4() { + Animation a; + a = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left); + a.setDuration(200); box_settings_close.startAnimation(a); + a = null; + Animation b; + b = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left); + b.setDuration(300); title_header.startAnimation(b); + b = null; + Animation c; + c = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left); + c.setDuration(400); main_box_16.startAnimation(c); + c = null; + Animation d; + d = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left); + d.setDuration(500); main_box_18.startAnimation(d); + d = null; + Animation e; + e = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left); + e.setDuration(600); main_box_9.startAnimation(e); + e = null; + } + + + public void _Layout_Transition() { + if (Build.VERSION.SDK_INT >= 4.1) { + ((ViewGroup) findViewById(R.id.main_box_1)).getLayoutTransition() + .enableTransitionType(LayoutTransition.CHANGING); + + ((ViewGroup) findViewById(R.id.main_box_2)).getLayoutTransition() + .enableTransitionType(LayoutTransition.CHANGING); + + ((ViewGroup) findViewById(R.id.main_box_3)).getLayoutTransition() + .enableTransitionType(LayoutTransition.CHANGING); + + ((ViewGroup) findViewById(R.id.main_box_19)).getLayoutTransition() + .enableTransitionType(LayoutTransition.CHANGING); + + ((ViewGroup) findViewById(R.id.main_box_6)).getLayoutTransition() + .enableTransitionType(LayoutTransition.CHANGING); + + ((ViewGroup) findViewById(R.id.box_sub_header)).getLayoutTransition() + .enableTransitionType(LayoutTransition.CHANGING); + + ((ViewGroup) findViewById(R.id.main_box_4)).getLayoutTransition() + .enableTransitionType(LayoutTransition.CHANGING); + + ((ViewGroup) findViewById(R.id.main_box_15)).getLayoutTransition() + .enableTransitionType(LayoutTransition.CHANGING); + + ((ViewGroup) findViewById(R.id.box_theme_switch)).getLayoutTransition() + .enableTransitionType(LayoutTransition.CHANGING); + + ((ViewGroup) findViewById(R.id.box_language_switch)).getLayoutTransition() + .enableTransitionType(LayoutTransition.CHANGING); + } + + } + + + public void _Reboot() { + Timer = new TimerTask() { + @Override + public void run() { + runOnUiThread(new Runnable() { + @Override + public void run() { + cloned_version_switch.setChecked(true); + Timer = new TimerTask() { + @Override + public void run() { + runOnUiThread(new Runnable() { + @Override + public void run() { + cloned_version_switch.setChecked(false); + Timer = new TimerTask() { + @Override + public void run() { + runOnUiThread(new Runnable() { + @Override + public void run() { + experiment_version_switch.setChecked(true); + Timer = new TimerTask() { + @Override + public void run() { + runOnUiThread(new Runnable() { + @Override + public void run() { + experiment_version_switch.setChecked(false); + Timer = new TimerTask() { + @Override + public void run() { + runOnUiThread(new Runnable() { + @Override + public void run() { + list_auto_refresh_switch.setChecked(true); + Timer = new TimerTask() { + @Override + public void run() { + runOnUiThread(new Runnable() { + @Override + public void run() { + list_auto_refresh_switch.setChecked(false); + Timer = new TimerTask() { + @Override + public void run() { + runOnUiThread(new Runnable() { + @Override + public void run() { + force_auto_install_switch.setChecked(true); + Timer = new TimerTask() { + @Override + public void run() { + runOnUiThread(new Runnable() { + @Override + public void run() { + force_auto_install_switch.setChecked(false); + Timer = new TimerTask() { + @Override + public void run() { + runOnUiThread(new Runnable() { + @Override + public void run() { + disable_reward_ad_switch.setChecked(true); + Timer = new TimerTask() { + @Override + public void run() { + runOnUiThread(new Runnable() { + @Override + public void run() { + disable_reward_ad_switch.setChecked(false); + } + }); + } + }; + _timer.schedule(Timer, (int)(900)); + } + }); + } + }; + _timer.schedule(Timer, (int)(700)); + } + }); + } + }; + _timer.schedule(Timer, (int)(850)); + } + }); + } + }; + _timer.schedule(Timer, (int)(650)); + } + }); + } + }; + _timer.schedule(Timer, (int)(800)); + } + }); + } + }; + _timer.schedule(Timer, (int)(600)); + } + }); + } + }; + _timer.schedule(Timer, (int)(750)); + } }); - AlertDialog = Signature_Check.create(); - AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); - AlertDialog.show(); + } + }; + _timer.schedule(Timer, (int)(550)); + } + }); + } + }; + _timer.schedule(Timer, (int)(700)); + } + }); + } + }; + _timer.schedule(Timer, (int)(500)); + } + + + public void _Refetch() { + final ProgressDialog prog = new ProgressDialog(MainActivity.this, R.style.Intro_Dialog); + prog.getWindow().setBackgroundDrawableResource(R.drawable.progress_dialog); + prog.setMax(100); + prog.setMessage("Checking cached datas..."); + prog.setIndeterminate(true); + prog.setCancelable(false); + prog.show(); + Timer = new TimerTask() { + @Override + public void run() { + runOnUiThread(new Runnable() { + @Override + public void run() { + try { + REFETCH.edit().putString("REFETCH", "X").commit(); + box_reboot.performClick(); + prog.dismiss(); } - } - } - else { - if (!MainActivity.this.isFinishing()) { - if (Downloaded_Version_Wave < Installed_Version_Wave) { - final AlertDialog.Builder Downgrade_Check = new AlertDialog.Builder(MainActivity.this, R.style.Alert_Dialog); - String Title = "".concat(installation_failed_0.concat("")); - String TitleColor = "1DB954"; - Downgrade_Check.setTitle(Html.fromHtml(""+Title+"")); - String Message = installation_failed_desc_0.replace("\n", "
"); - String MessageColor = "FFFFFF"; - Downgrade_Check.setMessage(Html.fromHtml(""+Message+"")); - Downgrade_Check.setPositiveButton(uninstall_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Downgrade_Check, int p) { - AlertDialog.setCancelable(true); - try { - Intent intent = new Intent(Intent.ACTION_DELETE); intent.setData(Uri.parse("package:com.aspiro.tidal")); - startActivity(intent); - } - catch(Exception e) { - } - } - }); - Downgrade_Check.setNeutralButton(close_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Downgrade_Check, int p) { - AlertDialog.setCancelable(true); - } - }); - AlertDialog = Downgrade_Check.create(); - AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); - AlertDialog.show(); + catch(Exception e) { } } - } - } - }); - Success_Download.setNeutralButton(later_0, new DialogInterface.OnClickListener(){ - @Override - public void onClick(DialogInterface Success_Download, int p) { - AlertDialog.setCancelable(true); - _Reminder(); + }); } - }); - AlertDialog = Success_Download.create(); - AlertDialog.setCancelable(false); - AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); - AlertDialog.show(); + }; + _timer.schedule(Timer, (int)(1000)); + if (Build.VERSION.SDK_INT > Build.VERSION_CODES.KITKAT) { + Window w =MainActivity.this.getWindow(); + w.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); + w.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); w.setStatusBarColor(0xFF171717); + } + title_header.setTextColor(0xFF1DB954); + title_header_separator.setTextColor(0xFFFFFFFF); + title_header_beta.setTextColor(0xFFFFFFFF); + box_header.setBackgroundColor(0xFF171717); + box_header.setVisibility(View.GONE); + main_body_optimization.setVisibility(View.VISIBLE); + main_scroll_settings.setVisibility(View.GONE); + main_scroll_about.setVisibility(View.GONE); + main_refresh_layout.setVisibility(View.GONE); + box_experiment.setVisibility(View.GONE); + box_switch.setVisibility(View.GONE); + box_update.setVisibility(View.GONE); + icon_experiment.setAlpha((float)(1.0d)); + icon_switch.setAlpha((float)(1.0d)); + icon_update.setAlpha((float)(1.0d)); + main_body.setAlpha((float)(0.50d)); } @@ -18688,6 +18250,177 @@ public class MainActivity extends AppCompatActivity { _Rewarded_AdMob(); } + + public void _Original_Theme() { + box_settings_icon_close.setBackgroundColor(Color.TRANSPARENT); + box_icon_close.setBackgroundColor(Color.TRANSPARENT); + box_header.setBackgroundColor(0xFF171717); + box_sub_header.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); + main_box_1.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); + main_box_2.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); + main_box_3.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); + main_box_5.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); + main_box_6.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); + main_box_8.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); + main_box_9.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); + main_box_10.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); + main_box_11.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); + main_box_14.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); + main_box_16.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); + main_box_17.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); + main_box_18.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); + main_box_20.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); + main_box_21.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); + box_support.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); + box_donate.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); + box_about.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); + box_source.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); + box_website.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); + box_discord.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); + box_reddit.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); + box_faq.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); + box_about_header.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF1DB954)); + box_about_1.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); + box_about_2.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); + box_about_3.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); + box_about_4.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); + box_about_5.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); + box_about_6.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); + box_about_7.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF171717)); + box_about_sub.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF2962FF)); + box_reboot.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF424242)); + box_reset_preferences.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF424242)); + box_separator_1.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF616161)); + box_separator_2.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF616161)); + box_separator_3.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF616161)); + box_separator_4.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF616161)); + box_separator_8.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF616161)); + box_separator_9.setBackground(new GradientDrawable() { public GradientDrawable getIns(int a, int b) { this.setCornerRadius(a); this.setColor(b); return this; } }.getIns((int)25, 0xFF616161)); + title_header.setTextColor(0xFF1DB954); + cloned_version.setTextColor(0xFF1DB954); + experiment_version.setTextColor(0xFF1DB954); + list_auto_refresh.setTextColor(0xFF1DB954); + force_auto_install.setTextColor(0xFF1DB954); + disable_reward_ad.setTextColor(0xFF1DB954); + disable_notification.setTextColor(0xFF1DB954); + hide_stock_patched.setTextColor(0xFF1DB954); + hide_amoled_patched.setTextColor(0xFF1DB954); + hide_lite_patched.setTextColor(0xFF1DB954); + theme.setTextColor(0xFF1DB954); + language.setTextColor(0xFF1DB954); + apk_location.setTextColor(0xFF1DB954); + clear_directory_folders.setTextColor(0xFF1DB954); + reboot.setTextColor(0xFFFFFFFF); + reset_preferences.setTextColor(0xFFFFFFFF); + xmanager_dev.setTextColor(0xFF1DB954); + patched_devs.setTextColor(0xFF1DB954); + support_team.setTextColor(0xFF1DB954); + manager_testers.setTextColor(0xFF1DB954); + manager_hosting.setTextColor(0xFF1DB954); + mobilism_team.setTextColor(0xFF1DB954); + forum_team.setTextColor(0xFF1DB954); + manager_lang_1.setTextColor(0xFF1DB954); + manager_lang_2.setTextColor(0xFF1DB954); + manager_lang_3.setTextColor(0xFF1DB954); + manager_lang_4.setTextColor(0xFF1DB954); + manager_lang_5.setTextColor(0xFF1DB954); + manager_lang_6.setTextColor(0xFF1DB954); + manager_lang_7.setTextColor(0xFF1DB954); + manager_lang_8.setTextColor(0xFF1DB954); + manager_lang_9.setTextColor(0xFF1DB954); + manager_lang_10.setTextColor(0xFF1DB954); + manager_lang_11.setTextColor(0xFF1DB954); + manager_lang_12.setTextColor(0xFF1DB954); + manager_lang_13.setTextColor(0xFF1DB954); + manager_lang_14.setTextColor(0xFF1DB954); + manager_lang_15.setTextColor(0xFF1DB954); + manager_lang_16.setTextColor(0xFF1DB954); + manager_lang_17.setTextColor(0xFF1DB954); + manager_lang_18.setTextColor(0xFF1DB954); + manager_lang_19.setTextColor(0xFF1DB954); + manager_lang_20.setTextColor(0xFF1DB954); + manager_lang_21.setTextColor(0xFF1DB954); + manager_lang_22.setTextColor(0xFF1DB954); + manager_lang_23.setTextColor(0xFF1DB954); + manager_lang_24.setTextColor(0xFF1DB954); + manager_lang_25.setTextColor(0xFF1DB954); + manager_lang_26.setTextColor(0xFF1DB954); + manager_lang_27.setTextColor(0xFF1DB954); + manager_lang_28.setTextColor(0xFF1DB954); + manager_lang_29.setTextColor(0xFF1DB954); + manager_lang_30.setTextColor(0xFF1DB954); + manager_lang_31.setTextColor(0xFF1DB954); + manager_lang_32.setTextColor(0xFF1DB954); + manager_lang_33.setTextColor(0xFF1DB954); + manager_lang_34.setTextColor(0xFF1DB954); + manager_lang_35.setTextColor(0xFF1DB954); + manager_lang_36.setTextColor(0xFF1DB954); + manager_lang_37.setTextColor(0xFF1DB954); + manager_lang_38.setTextColor(0xFF1DB954); + manager_lang_39.setTextColor(0xFF1DB954); + manager_lang_40.setTextColor(0xFF1DB954); + manager_lang_41.setTextColor(0xFF1DB954); + manager_lang_42.setTextColor(0xFF1DB954); + manager_lang_43.setTextColor(0xFF1DB954); + manager_lang_44.setTextColor(0xFF1DB954); + manager_donors.setTextColor(0xFF1DB954); + contributors.setTextColor(0xFF1DB954); + title_1.setTextColor(0xFF1DB954); + title_2.setTextColor(0xFF1DB954); + title_3.setTextColor(0xFF1DB954); + title_6.setTextColor(0xFFFFFFFF); + sub_text_installed.setTextColor(0xFF1DB954); + title_sub.setTextColor(0xFF1DB954); + support.setTextColor(0xFF1DB954); + reddit.setTextColor(0xFF1DB954); + donate.setTextColor(0xFF1DB954); + about.setTextColor(0xFF1DB954); + discord.setTextColor(0xFF1DB954); + source.setTextColor(0xFF1DB954); + website.setTextColor(0xFF1DB954); + faq.setTextColor(0xFF1DB954); + } + + + public void _AlertDialog_Color() { + if (THEME.getString("THEME", "").equals("14")) { + AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.light_green); + } + else { + if (THEME.getString("THEME", "").equals("15")) { + AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.light_blue); + } + else { + if (THEME.getString("THEME", "").equals("16")) { + AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.light_red); + } + else { + if (THEME.getString("THEME", "").equals("17")) { + AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.light_orange); + } + else { + if (THEME.getString("THEME", "").equals("18")) { + AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.light_pink); + } + else { + if (THEME.getString("THEME", "").equals("19")) { + AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.light_purple); + } + else { + if (THEME.getString("THEME", "").equals("20")) { + AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.light_cyan); + } + else { + AlertDialog.getWindow().setBackgroundDrawableResource(R.drawable.background); + } + } + } + } + } + } + } + } + public class List_items_1Adapter extends BaseAdapter { ArrayList> _data; @@ -18934,78 +18667,6 @@ public class MainActivity extends AppCompatActivity { } } - public class List_items_4Adapter extends BaseAdapter { - - ArrayList> _data; - - public List_items_4Adapter(ArrayList> _arr) { - _data = _arr; - } - - @Override - public int getCount() { - return _data.size(); - } - - @Override - public HashMap getItem(int _index) { - return _data.get(_index); - } - - @Override - public long getItemId(int _index) { - return _index; - } - - @Override - public View getView(final int _position, View _v, ViewGroup _container) { - LayoutInflater _inflater = getLayoutInflater(); - View _view = _v; - if (_view == null) { - _view = _inflater.inflate(R.layout.list_versions, null); - } - - final LinearLayout box = _view.findViewById(R.id.box); - final TextView link = _view.findViewById(R.id.link); - final TextView mirror = _view.findViewById(R.id.mirror); - final ImageView icon = _view.findViewById(R.id.icon); - final TextView sub = _view.findViewById(R.id.sub); - final TextView sub_separator = _view.findViewById(R.id.sub_separator); - final TextView title = _view.findViewById(R.id.title); - - try { - sub.setVisibility(View.VISIBLE); - sub_separator.setVisibility(View.VISIBLE); - title.setVisibility(View.VISIBLE); - link.setVisibility(View.GONE); - mirror.setVisibility(View.GONE); - if (_position < 1) { - sub.setTextColor(0xFFFF1744); - sub.setText("LATEST RELEASE"); - sub_separator.setTextColor(0xFF616161); - sub_separator.setText("|"); - } - else { - sub.setTextColor(0xFFBDBDBD); - sub.setText("OLDER RELEASE"); - sub_separator.setTextColor(0xFF616161); - sub_separator.setText("|"); - } - sub.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - sub_separator.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - title.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_font.ttf"), 1); - title.setText(wave_patched.get((int)(wave_patched.size() - 1) - _position).get("Title").toString()); - Animation animation; - animation = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.fade_in); - animation.setDuration(500); box.startAnimation(animation); - animation = null; - } catch (Exception e) { - } - - return _view; - } - } - public class List_items_5Adapter extends BaseAdapter { ArrayList> _data; -- cgit v1.2.3