...
This commit is contained in:
parent
ebfe02cf62
commit
65aa8cc833
@ -39,6 +39,7 @@
|
||||
android:excludeFromRecents="true"
|
||||
android:clearTaskOnLaunch="true"
|
||||
android:stateNotNeeded="true"
|
||||
android:enableOnBackInvokedCallback="true"
|
||||
android:largeHeap="true"
|
||||
android:hardwareAccelerated="true"
|
||||
android:screenOrientation="nosensor"
|
||||
@ -48,7 +49,7 @@
|
||||
<activity
|
||||
android:name=".LauncherActivity"
|
||||
android:theme="@style/Theme.LunarLauncher.Starting"
|
||||
android:launchMode="singleTask"
|
||||
android:launchMode="singleInstance"
|
||||
android:windowSoftInputMode="adjustResize"
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
|
||||
@ -58,6 +58,7 @@ import rasel.lunar.launcher.helpers.Constants.Companion.widgetHostId
|
||||
import rasel.lunar.launcher.helpers.UniUtils.Companion.getColorResId
|
||||
import rasel.lunar.launcher.helpers.ViewPagerAdapter
|
||||
import rasel.lunar.launcher.home.LauncherHome
|
||||
import rasel.lunar.launcher.utils.BLog
|
||||
|
||||
|
||||
internal class LauncherActivity : AppCompatActivity() {
|
||||
@ -103,12 +104,17 @@ internal class LauncherActivity : AppCompatActivity() {
|
||||
appWidgetHost?.stopListening()
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
if (settingsPrefs.getBoolean(KEY_BACK_HOME, false)) viewPager.currentItem = 1
|
||||
override fun onStart() {
|
||||
super.onStart()
|
||||
BLog.LOGE("onStart()")
|
||||
// if (settingsPrefs.getBoolean(KEY_BACK_HOME, false)) viewPager.currentItem = 1
|
||||
statusBarView()
|
||||
setBgColor()
|
||||
}
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
BLog.LOGE("onResume")
|
||||
}
|
||||
|
||||
private fun welcomeDialog() {
|
||||
getSharedPreferences(PREFS_FIRST_LAUNCH, 0).let {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user