mirror of
https://github.com/Team-xManager/xManager.git
synced 2024-09-01 00:09:52 +02:00
Update SplashActivity.java
This commit is contained in:
parent
7f87d74aca
commit
f53ad4a5a0
|
@ -29,6 +29,8 @@ import androidx.fragment.app.DialogFragment;
|
||||||
import androidx.fragment.app.Fragment;
|
import androidx.fragment.app.Fragment;
|
||||||
import androidx.fragment.app.FragmentManager;
|
import androidx.fragment.app.FragmentManager;
|
||||||
import com.google.android.gms.ads.MobileAds;
|
import com.google.android.gms.ads.MobileAds;
|
||||||
|
import com.google.android.material.*;
|
||||||
|
import com.google.firebase.FirebaseApp;
|
||||||
import com.wuyr.rippleanimation.*;
|
import com.wuyr.rippleanimation.*;
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.text.*;
|
import java.text.*;
|
||||||
|
@ -54,7 +56,7 @@ public class SplashActivity extends AppCompatActivity {
|
||||||
super.onCreate(_savedInstanceState);
|
super.onCreate(_savedInstanceState);
|
||||||
setContentView(R.layout.splash);
|
setContentView(R.layout.splash);
|
||||||
initialize(_savedInstanceState);
|
initialize(_savedInstanceState);
|
||||||
|
FirebaseApp.initializeApp(this);
|
||||||
MobileAds.initialize(this);
|
MobileAds.initialize(this);
|
||||||
|
|
||||||
initializeLogic();
|
initializeLogic();
|
||||||
|
@ -118,7 +120,6 @@ public class SplashActivity extends AppCompatActivity {
|
||||||
title_splash.setTextSize((int)20);
|
title_splash.setTextSize((int)20);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (9 == SketchwareUtil.getRandom((int)(0), (int)(9))) {
|
|
||||||
title_splash.setText("Spotify but on steroids");
|
title_splash.setText("Spotify but on steroids");
|
||||||
title_splash.setTextSize((int)20);
|
title_splash.setTextSize((int)20);
|
||||||
}
|
}
|
||||||
|
@ -130,7 +131,6 @@ public class SplashActivity extends AppCompatActivity {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
Animation animation_icon;
|
Animation animation_icon;
|
||||||
animation_icon = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.fade_in);
|
animation_icon = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.fade_in);
|
||||||
animation_icon.setDuration(800); icon_splash.startAnimation(animation_icon);
|
animation_icon.setDuration(800); icon_splash.startAnimation(animation_icon);
|
||||||
|
@ -160,7 +160,7 @@ public class SplashActivity extends AppCompatActivity {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onBackPressed() {
|
public void onBackPressed() {
|
||||||
SketchwareUtil.showMessage(getApplicationContext(), "Can't Go Back");
|
com.google.android.material.snackbar.Snackbar.make(main_body, "Can't Go Back", com.google.android.material.snackbar.Snackbar.LENGTH_LONG).show();
|
||||||
}
|
}
|
||||||
public void _Dark_Navigation() {
|
public void _Dark_Navigation() {
|
||||||
if (Build.VERSION.SDK_INT >= 21) {
|
if (Build.VERSION.SDK_INT >= 21) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user