From 26eb0c1f6d9fd6eddd44d0ebcada59c8e0415867 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 9 Jun 2019 11:47:57 +0200 Subject: [PATCH] Show splash window after 1500 ms --- app/src/main/java/eu/faircode/email/ActivityMain.java | 8 ++++++++ app/src/main/res/values/styles.xml | 6 ++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityMain.java b/app/src/main/java/eu/faircode/email/ActivityMain.java index 58dcaae404..d0a9dd538e 100644 --- a/app/src/main/java/eu/faircode/email/ActivityMain.java +++ b/app/src/main/java/eu/faircode/email/ActivityMain.java @@ -25,6 +25,7 @@ import android.content.SharedPreferences; import android.content.res.Configuration; import android.os.Build; import android.os.Bundle; +import android.os.Handler; import androidx.appcompat.app.AppCompatActivity; import androidx.fragment.app.FragmentManager; @@ -51,6 +52,13 @@ public class ActivityMain extends AppCompatActivity implements FragmentManager.O if (prefs.getBoolean("eula", false)) { super.onCreate(savedInstanceState); + new Handler().postDelayed(new Runnable() { + @Override + public void run() { + getWindow().setBackgroundDrawableResource(R.drawable.splash); + } + }, 1500); + new SimpleTask() { @Override protected Boolean onExecute(Context context, Bundle args) { diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 3b14ac0bef..7ed776aa9f 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -76,10 +76,8 @@ @null true @android:style/Animation - - -