From f33d8e1b0017ff45900ae30c1b7db88c1bfc671c Mon Sep 17 00:00:00 2001 From: Ivan Sucic Date: Thu, 30 Mar 2023 22:57:55 +0200 Subject: [PATCH] Using the newer splashScreen API --- app/src/main/AndroidManifest.xml | 17 ++++++++--------- .../dp/logcatapp/activities/SplashActivity.kt | 17 ----------------- 2 files changed, 8 insertions(+), 26 deletions(-) delete mode 100644 app/src/main/java/com/dp/logcatapp/activities/SplashActivity.kt diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 3d4a86a..8e0487d 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,9 +1,9 @@ + xmlns:tools="http://schemas.android.com/tools"> + @@ -21,17 +21,15 @@ android:theme="@style/LightTheme" tools:ignore="GoogleAppIndexingWarning"> + android:name=".activities.MainActivity" + android:launchMode="singleTask" + android:theme="@style/SplashScreenTheme" + android:exported="true"> - - + android:windowSoftInputMode="adjustResize" + android:exported="true"> diff --git a/app/src/main/java/com/dp/logcatapp/activities/SplashActivity.kt b/app/src/main/java/com/dp/logcatapp/activities/SplashActivity.kt deleted file mode 100644 index 7ac1a85..0000000 --- a/app/src/main/java/com/dp/logcatapp/activities/SplashActivity.kt +++ /dev/null @@ -1,17 +0,0 @@ -package com.dp.logcatapp.activities - -import android.content.Intent -import android.os.Bundle -import androidx.appcompat.app.AppCompatActivity - -open class SplashActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - startActivity(Intent(this, MainActivity::class.java)) - finish() - } - - override fun onBackPressed() { - // prevent back press - } -} \ No newline at end of file