Update SplashActivity.java

This commit is contained in:
xC3FFF0E 2023-02-01 18:34:45 +08:00 committed by GitHub
parent 5daa8e0d53
commit cbe49804e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,6 @@ import androidx.fragment.app.DialogFragment;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import com.google.android.gms.ads.MobileAds;
import com.google.android.material.*;
import com.google.firebase.FirebaseApp;
import com.wuyr.rippleanimation.*;
import java.io.*;
@ -75,52 +74,37 @@ public class SplashActivity extends AppCompatActivity {
w.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); w.setStatusBarColor(0xFF171717);
}
title_splash.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/base_glitch.ttf"), 1);
if (0 == SketchwareUtil.getRandom((int)(0), (int)(9))) {
if (0 == SketchwareUtil.getRandom((int)(0), (int)(6))) {
title_splash.setText("xManager");
title_splash.setTextSize((int)25);
}
else {
if (1 == SketchwareUtil.getRandom((int)(0), (int)(9))) {
if (1 == SketchwareUtil.getRandom((int)(0), (int)(6))) {
title_splash.setText("Made with Love");
title_splash.setTextSize((int)25);
}
else {
if (2 == SketchwareUtil.getRandom((int)(0), (int)(9))) {
title_splash.setText("Freedom");
title_splash.setTextSize((int)25);
}
else {
if (3 == SketchwareUtil.getRandom((int)(0), (int)(9))) {
title_splash.setText("Superior");
title_splash.setTextSize((int)25);
}
else {
if (4 == SketchwareUtil.getRandom((int)(0), (int)(9))) {
title_splash.setText("Superlative");
title_splash.setTextSize((int)25);
}
else {
if (5 == SketchwareUtil.getRandom((int)(0), (int)(9))) {
title_splash.setText("Never Go Back");
title_splash.setTextSize((int)25);
}
else {
if (6 == SketchwareUtil.getRandom((int)(0), (int)(9))) {
title_splash.setText("Saving Your $10");
title_splash.setTextSize((int)25);
}
else {
if (7 == SketchwareUtil.getRandom((int)(0), (int)(9))) {
if (2 == SketchwareUtil.getRandom((int)(0), (int)(6))) {
title_splash.setText("It's A Movement");
title_splash.setTextSize((int)25);
}
else {
if (8 == SketchwareUtil.getRandom((int)(0), (int)(9))) {
if (3 == SketchwareUtil.getRandom((int)(0), (int)(6))) {
title_splash.setText("We Are Resistance");
title_splash.setTextSize((int)25);
}
else {
if (4 == SketchwareUtil.getRandom((int)(0), (int)(6))) {
title_splash.setText("Bravo Six, Going Dark");
title_splash.setTextSize((int)25);
}
else {
if (5 == SketchwareUtil.getRandom((int)(0), (int)(6))) {
title_splash.setText("Freedom For Everyone");
title_splash.setTextSize((int)20);
}
else {
title_splash.setText("Spotify but on steroids");
title_splash.setText("Don't Make Us Popular!");
title_splash.setTextSize((int)20);
}
}
@ -128,9 +112,6 @@ public class SplashActivity extends AppCompatActivity {
}
}
}
}
}
}
Animation animation_icon;
animation_icon = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.fade_in);
animation_icon.setDuration(800); icon_splash.startAnimation(animation_icon);