summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxC3FFF0E <78732474+xC3FFF0E@users.noreply.github.com>2023-02-28 21:38:01 +0100
committerGitHub <noreply@github.com>2023-02-28 21:38:01 +0100
commita311ee4b6120980cd83e21f512872e5c373a30f1 (patch)
treee135cabf107cef7299404a6c0a470d8bda71a242
parentUpdate MainActivity.java (diff)
downloadxManager-a311ee4b6120980cd83e21f512872e5c373a30f1.tar
xManager-a311ee4b6120980cd83e21f512872e5c373a30f1.tar.gz
xManager-a311ee4b6120980cd83e21f512872e5c373a30f1.tar.bz2
xManager-a311ee4b6120980cd83e21f512872e5c373a30f1.tar.lz
xManager-a311ee4b6120980cd83e21f512872e5c373a30f1.tar.xz
xManager-a311ee4b6120980cd83e21f512872e5c373a30f1.tar.zst
xManager-a311ee4b6120980cd83e21f512872e5c373a30f1.zip
-rw-r--r--app/src/main/java/com/xc3fff0e/xmanager/SplashActivity.java29
1 files changed, 15 insertions, 14 deletions
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();
}