diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 9ef16fd6f..8146f9538 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -12,14 +12,20 @@ android:label="@string/app_launcher_name" android:supportsRtl="true" android:theme="@style/AppTheme"> + + android:name=".activities.SplashActivity" + android:theme="@style/SplashTheme"> + + + diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SplashActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SplashActivity.kt new file mode 100644 index 000000000..13e968dcf --- /dev/null +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SplashActivity.kt @@ -0,0 +1,13 @@ +package com.simplemobiletools.gallery.activities + +import android.content.Intent +import android.os.Bundle +import android.support.v7.app.AppCompatActivity + +class SplashActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + startActivity(Intent(this, MainActivity::class.java)) + finish() + } +} diff --git a/app/src/main/res/layout/activity_splash.xml b/app/src/main/res/layout/activity_splash.xml new file mode 100644 index 000000000..9a0069a92 --- /dev/null +++ b/app/src/main/res/layout/activity_splash.xml @@ -0,0 +1,6 @@ + + diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index a9fcbd51a..4d5b7c5cf 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -11,6 +11,10 @@ @style/SpinnerItem.DropDownItem + +