Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
S
SuperEasyClean
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songjianyu
SuperEasyClean
Commits
df2e7b9e
Commit
df2e7b9e
authored
Jun 06, 2025
by
wanglei
Committed by
songjianyu
Jun 09, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[修复]恢复对热启动走启动页的处理
parent
36e9bd12
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
9 deletions
+22
-9
MyApplication.kt
app/src/main/java/com/base/appzxhy/MyApplication.kt
+8
-7
SplashActivity.kt
...rc/main/java/com/base/appzxhy/ui/splash/SplashActivity.kt
+14
-2
No files found.
app/src/main/java/com/base/appzxhy/MyApplication.kt
View file @
df2e7b9e
...
...
@@ -3,6 +3,7 @@ package com.base.appzxhy
import
android.app.Activity
import
android.app.Application
import
android.content.Context
import
android.content.Intent
import
android.os.Bundle
import
android.text.TextUtils
import
android.util.Log
...
...
@@ -203,13 +204,13 @@ class MyApplication : Application() {
LogEx
.
logDebug
(
TAG
,
"flag=$flag"
+
" activity:"
+
activity
.
localClassName
)
if
(
flag
)
{
//
topActivity?.startActivity(
//
Intent(
//
topActivity, SplashActivity::class.java
//
).apply {
//
putExtra("isHotLaunch", true)
//
putExtra("type", -1)
//
})
topActivity
?.
startActivity
(
Intent
(
topActivity
,
SplashActivity
::
class
.
java
).
apply
{
putExtra
(
"isHotLaunch"
,
true
)
putExtra
(
"type"
,
-
1
)
})
}
}
lastTimeResume
=
0
...
...
app/src/main/java/com/base/appzxhy/ui/splash/SplashActivity.kt
View file @
df2e7b9e
...
...
@@ -60,7 +60,7 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>(ActivitySplashBinding
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
initUMP
()
super
.
onCreate
(
savedInstanceState
)
actionId
=
intent
?.
extras
?.
getString
(
"actionId"
)
?:
""
handleIntentExtras
()
}
override
fun
onResumeOneShoot
()
{
...
...
@@ -168,6 +168,10 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>(ActivitySplashBinding
goToAc
(
GuideCleanActivity
::
class
.
java
)
finish
()
}
isHotLaunch
->{
goToAc
(
MainActivity
::
class
.
java
)
finish
()
}
actionId
.
isNotEmpty
()
->
{
actionIdJump
()
...
...
@@ -212,10 +216,18 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>(ActivitySplashBinding
}
}
var
actionId
=
""
override
fun
onNewIntent
(
intent
:
Intent
?)
{
super
.
onNewIntent
(
intent
)
handleIntentExtras
()
}
var
isHotLaunch
:
Boolean
=
false
var
actionId
=
""
fun
handleIntentExtras
()
{
super
.
onNewIntent
(
intent
)
actionId
=
intent
?.
extras
?.
getString
(
"actionId"
)
?:
""
isHotLaunch
=
intent
?.
extras
?.
getBoolean
(
"isHotLaunch"
)
==
true
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment