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
4fd3243f
Commit
4fd3243f
authored
Oct 13, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
e87cb222
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
20 deletions
+0
-20
AndroidManifest.xml
video/app/src/main/AndroidManifest.xml
+0
-3
SplashActivity.kt
...java/com/duben/miniplaylet/ui/activitys/SplashActivity.kt
+0
-17
No files found.
video/app/src/main/AndroidManifest.xml
View file @
4fd3243f
...
...
@@ -81,9 +81,6 @@
<category
android:name=
"android.intent.category.LAUNCHER"
/>
</intent-filter>
<meta-data
android:name=
"is_launcher"
android:value=
"true"
/>
</activity>
<activity
...
...
video/app/src/main/java/com/duben/miniplaylet/ui/activitys/SplashActivity.kt
View file @
4fd3243f
package
com.duben.miniplaylet.ui.activitys
import
android.annotation.SuppressLint
import
android.content.pm.PackageManager
import
android.os.Bundle
import
android.view.KeyEvent
import
android.view.View
...
...
@@ -51,22 +50,6 @@ class SplashActivity : BaseActivity() {
mProgressBar
=
findViewById
(
R
.
id
.
progressBar
)
showPowerDialog
()
val
isLaunchedFromLauncher
=
isLaunchedFromLauncher
()
if
(
isLaunchedFromLauncher
)
{
println
(
"mcg -->>>应用是通过点击桌面图标启动的"
)
// 应用是通过点击桌面图标启动的
}
else
{
println
(
"mcg -->>>应用是从后台恢复的"
)
// 应用是从后台恢复的
}
}
private
fun
isLaunchedFromLauncher
():
Boolean
{
val
activityInfo
=
packageManager
.
getActivityInfo
(
componentName
,
PackageManager
.
GET_META_DATA
)
val
bundle
=
activityInfo
.
metaData
return
bundle
!=
null
&&
bundle
.
getBoolean
(
"is_launcher"
,
false
)
}
override
fun
finish
()
{
...
...
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