adding a launcher black splash activity

This commit is contained in:
tibbi 2017-10-19 21:52:32 +02:00
parent 7c95988cca
commit 4b9eb1bfd9
2 changed files with 22 additions and 3 deletions

View File

@ -20,15 +20,21 @@
android:label="@string/app_launcher_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:theme="@style/AppTheme">
<activity
android:name=".activities.MainActivity"
android:screenOrientation="portrait"
android:theme="@style/FullScreenTheme">
android:name=".activities.SplashActivity"
android:theme="@style/SplashTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<activity
android:name=".activities.MainActivity"
android:screenOrientation="portrait"
android:theme="@style/FullScreenTheme">
<intent-filter>
<action android:name="android.media.action.IMAGE_CAPTURE"/>

View File

@ -0,0 +1,13 @@
package com.simplemobiletools.camera.activities
import android.content.Intent
import android.os.Bundle
import com.simplemobiletools.commons.activities.BaseSimpleActivity
open class SplashActivity : BaseSimpleActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
startActivity(Intent(this, MainActivity::class.java))
finish()
}
}