From a311ee4b6120980cd83e21f512872e5c373a30f1 Mon Sep 17 00:00:00 2001 From: xC3FFF0E <78732474+xC3FFF0E@users.noreply.github.com> Date: Wed, 1 Mar 2023 04:38:01 +0800 Subject: Update SplashActivity.java --- .../java/com/xc3fff0e/xmanager/SplashActivity.java | 29 +++++++++++----------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'app/src/main/java/com') diff --git a/app/src/main/java/com/xc3fff0e/xmanager/SplashActivity.java b/app/src/main/java/com/xc3fff0e/xmanager/SplashActivity.java index 4141280..5bd92e2 100644 --- a/app/src/main/java/com/xc3fff0e/xmanager/SplashActivity.java +++ b/app/src/main/java/com/xc3fff0e/xmanager/SplashActivity.java @@ -30,6 +30,7 @@ import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentManager; import com.bumptech.glide.Glide; import com.google.android.gms.ads.MobileAds; +import com.google.firebase.FirebaseApp; import com.wuyr.rippleanimation.*; import java.io.*; import java.text.*; @@ -55,7 +56,7 @@ public class SplashActivity extends AppCompatActivity { super.onCreate(_savedInstanceState); setContentView(R.layout.splash); initialize(_savedInstanceState); - + FirebaseApp.initializeApp(this); MobileAds.initialize(this); initializeLogic(); @@ -118,19 +119,19 @@ public class SplashActivity extends AppCompatActivity { animation_title = null; Timer = new TimerTask() { - @Override - public void run() { - runOnUiThread(new Runnable() { - @Override - public void run() { - Switch_Activity.setClass(getApplicationContext(), MainActivity.class); - startActivity(Switch_Activity); - finish(); - } - }); - } - }; - _timer.schedule(Timer, (int)(1000)); + @Override + public void run() { + runOnUiThread(new Runnable() { + @Override + public void run() { + Switch_Activity.setClass(getApplicationContext(), MainActivity.class); + startActivity(Switch_Activity); + finish(); + } + }); + } + }; + _timer.schedule(Timer, (int)(1000)); _Dark_Navigation(); } -- cgit v1.2.3