title: Black screen after splash
body: <p>When I open the app, the splash is shown and then there is a black screen (for just 1 second), and then goes to the activity.  How can I avoid this black screen?</p>
  
  <p>I set the splash as a theme. </p>
  
  <pre><code>class SplashActivity : AppCompatActivity() {
  
      override fun onCreate(savedInstanceState: Bundle?) {
          super.onCreate(savedInstanceState)
  
          if (sharedPrefs.isUserLogged) {
              startActivity(intentFor&lt;MainActivity&gt;().clearTask().newTask())
          }else{
              startActivity(intentFor&lt;LoginActivity&gt;().clearTask().newTask())
          }
          finish()
      }
  }
  </code></pre>
  
  <p>I set the splash style on my AndroidManifest.xml </p>
  
  <pre><code>&lt;activity android:name=".view.splash.SplashActivity"
                    android:theme="@style/AppTheme.Launch"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN"/&gt;
                  &lt;category android:name="android.intent.category.LAUNCHER"/&gt;
              &lt;/intent-filter&gt;
  &lt;/activity&gt;
  </code></pre>
  
  <p>and in my style, I set a drawable for the background.</p>
  
  <pre><code>&lt;style name="AppTheme.Launch"&gt;
      &lt;item name="android:windowBackground"&gt;@drawable/my_splash&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>