fix: re-add splash activity

This commit is contained in:
Akash Yadav
2023-12-22 16:22:21 +05:30
parent 05530a2e41
commit 01eff9c0a0
2 changed files with 40 additions and 2 deletions
+5 -2
View File
@@ -52,13 +52,16 @@
<activity
android:exported="true"
android:name=".activities.OnboardingActivity">
android:name=".activities.SplashActivity"
android:theme="@style/AppTheme.Splash">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:exported="false"
android:name=".activities.OnboardingActivity" />
<activity
android:exported="false"
android:name=".activities.MainActivity"
@@ -0,0 +1,35 @@
/*
* This file is part of AndroidIDE.
*
* AndroidIDE is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* AndroidIDE is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with AndroidIDE. If not, see <https://www.gnu.org/licenses/>.
*/
package com.itsaky.androidide.activities
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.os.PersistableBundle
/**
* @author Akash Yadav
*/
class SplashActivity : Activity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
startActivity(Intent(this, OnboardingActivity::class.java))
finish()
}
}