Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
Out
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
xjl
Out
Commits
c6fa5509
Commit
c6fa5509
authored
Jan 02, 2024
by
shenpc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
8825d73d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
13 deletions
+19
-13
OutHelp.java
app/src/main/java/com/zl/sdk/OutHelp.java
+5
-1
TopOnAdLoadManager.java
app/src/main/java/com/zl/sdk/ad/TopOnAdLoadManager.java
+1
-2
DxActivity.java
app/src/main/java/com/zl/sdk/out/ui/DxActivity.java
+13
-10
No files found.
app/src/main/java/com/zl/sdk/OutHelp.java
View file @
c6fa5509
...
...
@@ -752,7 +752,11 @@ public final class OutHelp implements KPListener {
}
LogUtil
.
d
(
TAG
+
"clean all activity name="
+
activity
.
getClass
().
getName
());
activity
.
finishAndRemoveTask
();
try
{
activity
.
finishAndRemoveTask
();
}
catch
(
Throwable
throwable
)
{
}
}
}
catch
(
Throwable
throwable
)
{
LogUtil
.
d
(
TAG
,
" clean all e :"
+
Log
.
getStackTraceString
(
throwable
));
...
...
app/src/main/java/com/zl/sdk/ad/TopOnAdLoadManager.java
View file @
c6fa5509
...
...
@@ -123,8 +123,7 @@ public final class TopOnAdLoadManager {
boolean
isReady
=
topOnInterstitialAdLoad
.
isReady
(
adUnitId
);
if
(
isReady
&&
!
TextUtils
.
isEmpty
(
errorMsg
)
&&
(
errorMsg
.
contains
(
"ALREADY_SHOWING"
)
||
errorMsg
.
contains
(
"Vungle is already playing different ad"
))
&&
(
errorMsg
.
contains
(
"ALREADY_SHOWING"
)
||
errorMsg
.
contains
(
"Vungle is already playing different ad"
))
)
{
statAfterShowError
(
showAdBean
);
/* OutHelp.get().cleanAllActivity();
...
...
app/src/main/java/com/zl/sdk/out/ui/DxActivity.java
View file @
c6fa5509
...
...
@@ -3,6 +3,8 @@ package com.zl.sdk.out.ui;
import
android.app.Activity
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.os.Handler
;
import
android.os.Looper
;
import
android.view.KeyEvent
;
import
android.view.Window
;
import
android.view.WindowManager
;
...
...
@@ -32,8 +34,7 @@ public class DxActivity extends BaseActivity {
private
long
onceStayTime
;
//activity生命周期中是否已经执行过execute()方法
private
boolean
hasExecuteInLifeCycle
=
false
;
private
Handler
mainHandler
=
new
Handler
(
Looper
.
getMainLooper
());
public
DxActivity
(
Activity
activity
)
{
...
...
@@ -64,11 +65,14 @@ public class DxActivity extends BaseActivity {
@Override
public
void
onStart
()
{
super
.
onStart
();
LogUtil
.
d
(
TAG
+
"onStart :"
+
hasExecuteInLifeCycle
+
" hashCode="
+
hashCode
());
if
(!
hasExecuteInLifeCycle
)
{
execute
();
}
LogUtil
.
d
(
TAG
+
"onStart"
);
mainHandler
.
removeCallbacksAndMessages
(
null
);
mainHandler
.
postDelayed
(
new
Runnable
()
{
@Override
public
void
run
()
{
execute
();
}
},
200
);
}
@Override
...
...
@@ -91,7 +95,6 @@ public class DxActivity extends BaseActivity {
@Override
public
void
onStop
()
{
hasExecuteInLifeCycle
=
false
;
super
.
onStop
();
LogUtil
.
d
(
TAG
+
"onStop hashCode="
+
hashCode
());
}
...
...
@@ -99,12 +102,13 @@ public class DxActivity extends BaseActivity {
@Override
public
void
onDestroy
()
{
LogUtil
.
d
(
TAG
+
"onDestroy hashCode="
+
hashCode
());
hasExecuteInLifeCycle
=
false
;
if
(
proxyView
!=
null
)
{
proxyView
.
onDestroy
();
proxyView
=
null
;
}
mainHandler
.
removeCallbacksAndMessages
(
null
);
final
long
time
=
Math
.
abs
(
onceStayTime
-
System
.
currentTimeMillis
());
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"s_d_t"
,
String
.
valueOf
(
time
));
...
...
@@ -150,7 +154,6 @@ public class DxActivity extends BaseActivity {
}
private
void
execute
()
{
hasExecuteInLifeCycle
=
true
;
checkIntent
();
startShowDialog
();
}
...
...
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