package com.implementist.treantreading;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

import com.implementist.treantreading.pref.AppPref;

/**
 * Copyright © 2017 Implementist. All rights reserved.
 */

public class LogoSplashActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        //注意，这里没有setContentView,单纯只是用来跳转到相应的Activity
        //目的是减少首屏渲染
        if (AppPref.isFirstRunning(this)){
            Intent intent = new Intent(this, MainActivity.class);
            startActivity(intent);
        }
        finish();
    }
}

@@ -114,20 +114,80 @@
 id.os.Bu
-ndle
+ild;%0Aimport android.os.Bundle;%0Aimport android.view.WindowManager
 ;%0A%0Aimpor
@@ -421,16 +421,16 @@
 tate) %7B%0A
-
         
@@ -466,16 +466,312 @@
 tate);%0A%0A
+        if (Build.VERSION.SDK_INT %3E= Build.VERSION_CODES.KITKAT) %7B%0A            // %E9%80%8F%E6%98%8E%E7%8A%B6%E6%80%81%E6%A0%8F%0A            getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);%0A            // %E9%80%8F%E6%98%8E%E5%AF%BC%E8%88%AA%E6%A0%8F%0A            getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);%0A        %7D%0A%0A
         

Update 2 of Splash Activity