mirror of
https://github.com/Team-xManager/xManager.git
synced 2024-11-23 12:06:43 +01:00
Update SplashActivity.java
This commit is contained in:
parent
4ac2bc0ddb
commit
a311ee4b61
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user