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
4ed5cdbc
Commit
4ed5cdbc
authored
Oct 13, 2023
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
06a65178
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
17 deletions
+8
-17
MainActivity.kt
...n/java/com/duben/miniplaylet/ui/activitys/MainActivity.kt
+0
-9
ForegroundOrBackground.java
...a/com/duben/miniplaylet/utils/ForegroundOrBackground.java
+8
-8
No files found.
video/app/src/main/java/com/duben/miniplaylet/ui/activitys/MainActivity.kt
View file @
4ed5cdbc
...
...
@@ -41,15 +41,6 @@ class MainActivity : BaseActivity(), View.OnClickListener {
override
fun
getContentViewLayoutID
()
=
R
.
layout
.
activity_main
override
fun
initViewsAndEvents
()
{
if
(
intent
?.
action
==
Intent
.
ACTION_MAIN
&&
intent
?.
categories
?.
contains
(
Intent
.
CATEGORY_LAUNCHER
)
==
true
)
{
// 应用是通过点击桌面图标进入的
println
(
"mcg -->>>>> 应用是通过点击桌面图标进入的"
)
}
else
{
// 应用是从后台进入前台的
// 应用是通过点击桌面图标进入的
println
(
"mcg -->>>>> 应用是通过点击桌面图标进入的"
)
}
DPHolderManager
.
initDpSdk
(
MintsApplication
.
getContext
())
audioManager
=
getSystemService
(
Context
.
AUDIO_SERVICE
)
as
AudioManager
...
...
video/app/src/main/java/com/duben/miniplaylet/utils/ForegroundOrBackground.java
View file @
4ed5cdbc
...
...
@@ -101,14 +101,14 @@ public class ForegroundOrBackground implements Application.ActivityLifecycleCall
// System.out.println("mcg -->>>>>:: diffInSeconds=" + diffInSeconds + " adSuccessStatus=" + SplashManager.INSTANCE.isSuccessStatus());
// if (diffInSeconds >= 10 && SplashManager.INSTANCE.isSuccessStatus()) {
//支付宝授权时不弹
if
(
AppConfig
.
alipayBackFalg
)
{
tempAlipay
=
tempAlipay
+
1
;
if
(
tempAlipay
>=
2
)
{
AppConfig
.
alipayBackFalg
=
false
;
}
}
else
{
activity
.
startActivity
(
new
Intent
(
activity
,
SplashBackActivity
.
class
));
}
//
if (AppConfig.alipayBackFalg) {
//
tempAlipay = tempAlipay + 1;
//
if (tempAlipay >= 2) {
//
AppConfig.alipayBackFalg = false;
//
}
//
} else {
//
activity.startActivity(new Intent(activity, SplashBackActivity.class));
//
}
// }
}
count
++;
...
...
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