diff options
Diffstat (limited to 'app/src/main/java/com/xc3fff0e/xmanager/SplashActivity.java')
-rw-r--r-- | app/src/main/java/com/xc3fff0e/xmanager/SplashActivity.java | 29 |
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();
}
|