package com.sinyuk.yuk.ui.splash;

import com.sinyuk.yuk.App;
import com.sinyuk.yuk.ui.BaseActivity;

/**
 * Created by Sinyuk on 16/8/16.
 */
public class SplashActivity extends BaseActivity{

    @Override
    protected int getContentViewID() {
        return 0;
    }

    @Override
    protected void beforeInflating() {
        App.get(this).getAppComponent().plus(new SplashModule(this)).inject(this);
    }

    @Override
    protected void finishInflating() {

    }
}

@@ -28,16 +28,194 @@
 plash;%0A%0A
+import android.content.Intent;%0Aimport android.os.Bundle;%0Aimport android.os.Handler;%0Aimport android.support.annotation.Nullable;%0Aimport android.support.v7.app.AppCompatActivity;%0A%0A
 import c
@@ -259,23 +259,48 @@
 yuk.
-ui.BaseActivity
+ShotsListDemo;%0A%0Aimport timber.log.Timber
 ;%0A%0A/
@@ -335,16 +335,125 @@
 6/8/16.%0A
+ * %E4%B9%8B%E5%90%8E%E6%88%91%E4%BB%AC%E5%8F%AF%E4%BB%A5%E5%9C%A8%E9%97%AA%E5%B1%8F%E9%A1%B5%E4%B8%AD%E5%88%9D%E5%A7%8B%E5%8C%96%E4%B8%80%E4%B8%AA%E5%BA%93 whatever%0A * %E5%8F%91%E8%B5%B7%E4%B8%80%E4%B8%AA%E7%BD%91%E7%BB%9C%E8%AF%B7%E6%B1%82 %E5%9C%A8%E8%BF%99%E9%87%8C%E5%8A%A0%E8%BD%BD%E7%94%A8%E6%88%B7%E6%95%B0%E6%8D%AE( UserManager ) %E7%AC%AC%E4%B8%80%E9%A1%B5%E5%88%97%E8%A1%A8( ShotRepository ) %E7%AD%89%E7%AD%89%0A * %E6%88%96%E8%80%85%E5%81%9A%E4%B8%80%E4%BA%9B%E5%A4%8D%E6%9D%82%E7%9A%84%E5%A4%84%E7%90%86%E3%80%82%0A
  */%0Apubl
@@ -488,12 +488,17 @@
 nds 
-Base
+AppCompat
 Acti
@@ -507,139 +507,222 @@
 ty%7B%0A
-%0A    @Override%0A    protected int getContentViewID() %7B%0A        return 0;%0A    %7D%0A%0A    @Override%0A    protected void beforeInflating() %7B
+    protected Handler myHandler = new Handler();%0A    private Runnable mLazyLoadRunnable;%0A%0A    @Override%0A    protected void onCreate(@Nullable Bundle savedInstanceState) %7B%0A        super.onCreate(savedInstanceState);
 %0A   
@@ -809,69 +809,477 @@
     
-%7D%0A%0A
     
-@Override%0A    protected void finishInflating() %7B%0A
+mLazyLoadRunnable = this::startMainActivity;%0A        if (savedInstanceState == null) %7B%0A            getWindow().getDecorView().post(() -%3E myHandler.postDelayed(mLazyLoadRunnable, 0));%0A        %7D%0A    %7D%0A%0A    private void startMainActivity() %7B%0A        Timber.d(%22Splash Finish%22);%0A        Intent starter = new Intent(SplashActivity.this, ShotsListDemo.class);%0A        starter.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);%0A        startActivity(starter);%0A        finish();
 %0A    %7D%0A
+%0A
 %7D%0A

Refactor on splash activity