1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-12 03:39:34 +01:00

Added splash screen to bypass blank screen on start up.

This commit is contained in:
Robert-Jan Keizer 2016-08-22 01:13:09 +02:00
parent 5cdf807d92
commit 05bfa8b85e
4 changed files with 18 additions and 2 deletions

View File

@ -18,7 +18,8 @@
tools:ignore="AllowBackup">
<activity
android:name=".VideoItemListActivity"
android:label="@string/app_name">
android:label="@string/app_name"
android:theme="@style/SplashScreenTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

View File

@ -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;

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:drawable="@color/light_background_color"/>
<item>
<bitmap
android:gravity="center"
android:src="@mipmap/ic_launcher"/>
</item>
</layer-list>

View File

@ -48,6 +48,9 @@
<item name="background">@color/video_overlay_color</item>
</style>
<style name="SplashScreenTheme" parent="@style/AppTheme">
<item name="android:windowBackground">@drawable/splash_screen</item>
</style>
<!-- You can also inherit from NNF_BaseTheme.Light -->
<style name="FilePickerTheme" parent="NNF_BaseTheme.Light">