Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_vedio
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_vedio
Commits
fc316c45
Commit
fc316c45
authored
Oct 13, 2023
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新切换开屏逻辑
parent
fb63d148
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletion
+15
-1
AndroidManifest.xml
video/app/src/main/AndroidManifest.xml
+1
-0
SplashActivity.kt
.../java/com/duben/dayplaylet/ui/activitys/SplashActivity.kt
+13
-0
ForegroundOrBackground.java
...va/com/duben/dayplaylet/utils/ForegroundOrBackground.java
+1
-1
No files found.
video/app/src/main/AndroidManifest.xml
View file @
fc316c45
...
...
@@ -75,6 +75,7 @@
android:name=
".ui.activitys.SplashActivity"
android:configChanges=
"orientation|screenSize|keyboardHidden"
android:exported=
"true"
android:launchMode=
"singleTask"
android:theme=
"@style/AppTheme.TranslucentSplash"
>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
...
...
video/app/src/main/java/com/duben/dayplaylet/ui/activitys/SplashActivity.kt
View file @
fc316c45
package
com.duben.dayplaylet.ui.activitys
import
android.annotation.SuppressLint
import
android.content.Intent
import
android.os.Bundle
import
android.os.Handler
import
android.os.Looper
import
android.view.KeyEvent
import
android.view.View
import
com.duben.dayplaylet.R
...
...
@@ -10,6 +13,7 @@ import com.duben.dayplaylet.ad.splash.SplashManager
import
com.duben.dayplaylet.common.Constant
import
com.duben.dayplaylet.common.Constant.PRIVACY_URL
import
com.duben.dayplaylet.common.Constant.REGISTER_URL
import
com.duben.dayplaylet.manager.ActivityPageManager
import
com.duben.dayplaylet.manager.TrackManager
import
com.duben.dayplaylet.ui.activitys.base.BaseActivity
import
com.duben.dayplaylet.ui.widgets.CycleProgress
...
...
@@ -42,6 +46,15 @@ class SplashActivity : BaseActivity() {
override
fun
initViewsAndEvents
()
{
if
(!
isTaskRoot
)
{
Handler
(
Looper
.
getMainLooper
()).
postDelayed
({
val
intent
=
Intent
(
ActivityPageManager
.
getInstance
().
currentActivity
,
SplashBackActivity
::
class
.
java
)
startActivity
(
intent
)
},
2000
)
//点击Home键后再点击App图标,会回到原来的界面。今天重新打包后,但是在Debug模式下,一切正常,
// 但是把打完包的apk(Release)安装在其他手机上时,回到桌面后点击图标会重新打开启动页
finish
()
...
...
video/app/src/main/java/com/duben/dayplaylet/utils/ForegroundOrBackground.java
View file @
fc316c45
...
...
@@ -107,7 +107,7 @@ public class ForegroundOrBackground implements Application.ActivityLifecycleCall
AppConfig
.
alipayBackFalg
=
false
;
}
}
else
{
activity
.
startActivity
(
new
Intent
(
activity
,
SplashBackActivity
.
class
));
//
activity.startActivity(new Intent(activity, SplashBackActivity.class));
}
// }
}
...
...
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