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
acba7201
Commit
acba7201
authored
Jan 29, 2021
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
fcb85a47
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
VideoAdingManager.java
.../java/com/mints/goodmoney/ad/video/VideoAdingManager.java
+1
-0
TaskCpdFragment.kt
...n/java/com/mints/goodmoney/ui/fragment/TaskCpdFragment.kt
+7
-5
item_fragment_main_my_title.xml
...y/app/src/main/res/layout/item_fragment_main_my_title.xml
+2
-2
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/ad/video/VideoAdingManager.java
View file @
acba7201
...
...
@@ -370,6 +370,7 @@ public class VideoAdingManager {
if
(
mReceiverBroadcastReceiver
!=
null
)
{
activity
.
stopService
(
new
Intent
(
activity
,
AppInstallService
.
class
));
activity
.
unregisterReceiver
(
mReceiverBroadcastReceiver
);
mReceiverBroadcastReceiver
=
null
;
}
activity
=
null
;
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/fragment/TaskCpdFragment.kt
View file @
acba7201
...
...
@@ -90,7 +90,7 @@ class TaskCpdFragment : BaseFragment(), TaskView,
}
private
fun
loadCPDData
()
{
LogUtil
.
d
(
TAG
,
"syd loadCPDData"
)
LogUtil
.
d
(
TAG
,
"syd loadCPDData"
)
taskPresenter
.
getCpdDetail
(
outNetIp
)
}
...
...
@@ -165,7 +165,7 @@ class TaskCpdFragment : BaseFragment(), TaskView,
}
override
fun
getCpdModelSuc
(
dataBean
:
CpdModelBean
.
DataBean
)
{
LogUtil
.
d
(
TAG
,
"syd getCpdModelSuc"
)
LogUtil
.
d
(
TAG
,
"syd getCpdModelSuc"
)
for
(
material
in
dataBean
.
materials
)
{
val
tzTaskBean
=
TzTaskBean
(
material
.
icons
,
material
.
title
,
material
.
description
,
false
,
mCoin
,
0
,
material
.
app_apk_name
)
...
...
@@ -182,7 +182,7 @@ class TaskCpdFragment : BaseFragment(), TaskView,
}
override
fun
getCpdModelFail
()
{
LogUtil
.
d
(
TAG
,
"syd getCpdModelFail"
)
LogUtil
.
d
(
TAG
,
"syd getCpdModelFail"
)
if
(
cpdLoadCountTime
++
>=
cpdMax
-
1
)
{
...
...
@@ -294,7 +294,7 @@ class TaskCpdFragment : BaseFragment(), TaskView,
}
override
fun
onLoadSuccess
(
dataList
:
MutableList
<
CoralAD
>?)
{
LogUtil
.
d
(
TAG
,
"shanhu onLoadSuccess times"
)
LogUtil
.
d
(
TAG
,
"shanhu onLoadSuccess times"
)
dataList
?.
let
{
for
(
coralAD
in
it
)
{
val
tzTaskBean
=
TzTaskBean
(
coralAD
.
icon
,
coralAD
.
title
,
coralAD
.
description
,
true
,
mCoin
,
0
,
null
)
...
...
@@ -305,7 +305,7 @@ class TaskCpdFragment : BaseFragment(), TaskView,
// 珊瑚循环完成后 调用圣于地广告
if
(
shLoadCountTime
++
>=
shMax
-
1
)
{
LogUtil
.
d
(
TAG
,
"shanhu onLoadSuccess"
)
LogUtil
.
d
(
TAG
,
"shanhu onLoadSuccess"
)
if
(
cpdMax
==
0
)
{
notifyDataAndShowAd
()
return
...
...
@@ -353,9 +353,11 @@ class TaskCpdFragment : BaseFragment(), TaskView,
mCoralDownload
?.
destroy
()
mDownloadProcess
=
null
DownloadApkManager
.
destroy
()
if
(
mReceiverBroadcastReceiver
!=
null
)
{
mContext
.
stopService
(
Intent
(
context
,
AppInstallService
::
class
.
java
))
mContext
.
unregisterReceiver
(
mReceiverBroadcastReceiver
)
mReceiverBroadcastReceiver
=
null
}
taskPresenter
.
detachView
()
...
...
GoodMoney/app/src/main/res/layout/item_fragment_main_my_title.xml
View file @
acba7201
...
...
@@ -12,8 +12,8 @@
<com.mints.goodmoney.ui.widgets.CircleImageView
android:id=
"@+id/item_title_avatar"
android:layout_width=
"
7
0dp"
android:layout_height=
"
7
0dp"
android:layout_width=
"
6
0dp"
android:layout_height=
"
6
0dp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
...
...
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