Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_goodmoney
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_goodmoney
Commits
357a9e9c
Commit
357a9e9c
authored
Jan 08, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
高额任务中断继续看广告
parent
2afcabac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
YlhVedioAdManager.java
.../java/com/mints/goodmoney/ad/vedio/YlhVedioAdManager.java
+3
-1
MyFragment.kt
...c/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
+6
-5
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/ad/vedio/YlhVedioAdManager.java
View file @
357a9e9c
...
...
@@ -3,6 +3,7 @@ package com.mints.goodmoney.ad.vedio;
import
android.app.Activity
;
import
android.os.SystemClock
;
import
com.mints.goodmoney.MintsApplication
;
import
com.mints.goodmoney.common.AppConfig
;
import
com.mints.goodmoney.common.Constant
;
import
com.mints.goodmoney.manager.TrackManager
;
...
...
@@ -10,6 +11,7 @@ import com.mints.goodmoney.manager.YlhAdManager;
import
com.mints.goodmoney.mvp.presenters.YlhVedioAdPresenter
;
import
com.mints.goodmoney.mvp.views.VedioAdManagerView
;
import
com.mints.goodmoney.utils.LogUtil
;
import
com.mints.goodmoney.utils.ToastUtil
;
import
com.qq.e.ads.rewardvideo.RewardVideoAD
;
import
com.qq.e.ads.rewardvideo.RewardVideoADListener
;
import
com.qq.e.comm.util.AdError
;
...
...
@@ -124,7 +126,7 @@ public class YlhVedioAdManager extends BaseVedioAd implements VedioAdManagerView
ylhPostId
=
YlhAdManager
.
INSTANCE
.
getYLH_AD_VEDIO_MOREDIALOG_POSTID
();
break
;
}
//
ToastUtil.show(MintsApplication.getContext(), "ylh vedio:" + ylhPostId);
ToastUtil
.
show
(
MintsApplication
.
getContext
(),
"ylh vedio:"
+
ylhPostId
);
if
(
rewardVideoAD
!=
null
)
{
rewardVideoAD
=
null
;
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/MyFragment.kt
View file @
357a9e9c
...
...
@@ -490,11 +490,12 @@ class MyFragment : BaseFragment(),
ps
.
remove
(
Constant
.
HIGH_TASK_PKG_NAME
)
}
3
->
{
// if (mCurrentPkg == null) {
// // 如果当前包名为空,获取本地存储的包名
// mCurrentPkg = ps.getString(Constant.HIGH_TASK_PKG_NAME, "")
// }
// if (TextUtils.isEmpty(mCurrentPkg)) {
if
(
mCurrentPkg
==
null
)
{
// 如果当前包名为空,获取本地存储的包名
mCurrentPkg
=
ps
.
getString
(
Constant
.
HIGH_TASK_PKG_NAME
,
""
)
}
if
(
TextUtils
.
isEmpty
(
mCurrentPkg
))
{
showToast
(
"任务异常,请重试~"
)
myPresenter
.
setHighTaskType
(
"0"
)
...
...
@@ -1243,7 +1244,7 @@ class MyFragment : BaseFragment(),
try
{
val
pkg
=
intent
.
getStringExtra
(
"pkg"
)
mCurrentPkg
=
pkg
ps
.
put
(
Constant
.
HIGH_TASK_PKG_NAME
,
pkg
)
//
ps.put(Constant.HIGH_TASK_PKG_NAME, pkg)
myPresenter
.
setHighTaskType
(
"3"
)
}
catch
(
e
:
Exception
)
{
...
...
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