mirror of
				https://github.com/viq/NewsBlur.git
				synced 2025-11-01 09:09:16 +00:00 
			
		
		
		
	minimise system UI flashing in init activity
This commit is contained in:
		
							parent
							
								
									9ede30e7fa
								
							
						
					
					
						commit
						7d233bff1f
					
				
					 4 changed files with 7 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -2,7 +2,7 @@
 | 
			
		|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
 | 
			
		||||
    package="com.newsblur"
 | 
			
		||||
    android:versionCode="125"
 | 
			
		||||
    android:versionName="4.8.1b2" >
 | 
			
		||||
    android:versionName="4.9.0b2" >
 | 
			
		||||
 | 
			
		||||
    <uses-sdk
 | 
			
		||||
        android:minSdkVersion="14"
 | 
			
		||||
| 
						 | 
				
			
			@ -24,6 +24,7 @@
 | 
			
		|||
        <activity
 | 
			
		||||
            android:name=".activity.InitActivity"
 | 
			
		||||
            android:label="@string/newsblur"
 | 
			
		||||
            android:theme="@style/initStyle"
 | 
			
		||||
            android:noHistory="true">
 | 
			
		||||
            <intent-filter>
 | 
			
		||||
                <category android:name="android.intent.category.LAUNCHER" />
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,6 +6,7 @@
 | 
			
		|||
    <color name="midgray">#898989</color>
 | 
			
		||||
    <color name="lightgray">#ccc</color>
 | 
			
		||||
    <color name="black">#000000</color>
 | 
			
		||||
    <color name="transparent">#00000000</color>
 | 
			
		||||
 | 
			
		||||
    <color name="folder_background_end">#E9EBE4</color>
 | 
			
		||||
    <color name="folder_background_start">#DDE0D7</color>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +1,10 @@
 | 
			
		|||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
<resources xmlns:android="http://schemas.android.com/apk/res/android">
 | 
			
		||||
 | 
			
		||||
    <style name="initStyle" parent="@android:style/Theme.DeviceDefault.NoActionBar">
 | 
			
		||||
        <item name="android:windowBackground">@color/transparent</item>
 | 
			
		||||
    </style>
 | 
			
		||||
 | 
			
		||||
    <style name="classifyDialog" parent="@android:style/Theme.Dialog">
 | 
			
		||||
        <item name="android:background">@drawable/actionbar_background</item>
 | 
			
		||||
        <item name="android:textColor">@color/darkgray</item>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -24,8 +24,6 @@ public class InitActivity extends Activity {
 | 
			
		|||
        super.onCreate(savedInstanceState);
 | 
			
		||||
 | 
			
		||||
        setContentView(R.layout.activity_init);
 | 
			
		||||
        getWindow().setBackgroundDrawableResource(android.R.color.transparent);
 | 
			
		||||
        getActionBar().hide();
 | 
			
		||||
 | 
			
		||||
        // do actual app launch after just a moment so the init screen smoothly loads
 | 
			
		||||
        new AsyncTask<Void, Void, Void>() {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue