Update SplashActivity.java

This commit is contained in:
xC3FFF0E 2023-03-01 04:38:01 +08:00 committed by GitHub
parent 4ac2bc0ddb
commit a311ee4b61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}