From 05bfa8b85ef8764688876f5c125d961264b794ec Mon Sep 17 00:00:00 2001 From: Robert-Jan Keizer Date: Mon, 22 Aug 2016 01:13:09 +0200 Subject: [PATCH] Added splash screen to bypass blank screen on start up. --- app/src/main/AndroidManifest.xml | 3 ++- .../org/schabi/newpipe/VideoItemListActivity.java | 2 +- app/src/main/res/drawable/splash_screen.xml | 12 ++++++++++++ app/src/main/res/values/styles.xml | 3 +++ 4 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 app/src/main/res/drawable/splash_screen.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index fe8bce6d7..3692b6328 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -18,7 +18,8 @@ tools:ignore="AllowBackup"> + android:label="@string/app_name" + android:theme="@style/SplashScreenTheme"> diff --git a/app/src/main/java/org/schabi/newpipe/VideoItemListActivity.java b/app/src/main/java/org/schabi/newpipe/VideoItemListActivity.java index 6efb529a9..92b44f807 100644 --- a/app/src/main/java/org/schabi/newpipe/VideoItemListActivity.java +++ b/app/src/main/java/org/schabi/newpipe/VideoItemListActivity.java @@ -18,7 +18,6 @@ import android.view.View; import android.view.inputmethod.InputMethodManager; import android.widget.Toast; -import org.schabi.newpipe.download.MainActivity; import org.schabi.newpipe.extractor.ExtractionException; import org.schabi.newpipe.extractor.SearchEngine; import org.schabi.newpipe.extractor.ServiceList; @@ -200,6 +199,7 @@ public class VideoItemListActivity extends AppCompatActivity @Override protected void onCreate(Bundle savedInstanceState) { + setTheme(R.style.AppTheme); super.onCreate(savedInstanceState); setContentView(R.layout.activity_videoitem_list); StreamingService streamingService = null; diff --git a/app/src/main/res/drawable/splash_screen.xml b/app/src/main/res/drawable/splash_screen.xml new file mode 100644 index 000000000..96edac61b --- /dev/null +++ b/app/src/main/res/drawable/splash_screen.xml @@ -0,0 +1,12 @@ + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index ad1b50adf..6654a5797 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -48,6 +48,9 @@ @color/video_overlay_color +