mirror of
https://github.com/ClaytonWWilson/Listify.git
synced 2025-12-16 10:48:46 +00:00
Can now display splashscreen when first entering the app v.4
This commit is contained in:
parent
addb8632d6
commit
838db000af
@ -33,10 +33,15 @@ public class MainActivity extends AppCompatActivity implements CreateListDialogF
|
|||||||
|
|
||||||
public static AuthManager am = new AuthManager();
|
public static AuthManager am = new AuthManager();
|
||||||
|
|
||||||
|
boolean showSplash = true;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
|
if(showSplash) {
|
||||||
|
showSplash = false;
|
||||||
|
|
||||||
new Handler().postDelayed(new Runnable() {
|
new Handler().postDelayed(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
@ -45,6 +50,7 @@ public class MainActivity extends AppCompatActivity implements CreateListDialogF
|
|||||||
finish();
|
finish();
|
||||||
}
|
}
|
||||||
}, 1);
|
}, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//------------------------------Auth Testing---------------------------------------------//
|
//------------------------------Auth Testing---------------------------------------------//
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user