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
26d3ffac
Commit
26d3ffac
authored
Jan 23, 2021
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
b626982e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
6 deletions
+16
-6
TaskPresenter.kt
.../java/com/mints/goodmoney/mvp/presenters/TaskPresenter.kt
+1
-0
TaskView.kt
...p/src/main/java/com/mints/goodmoney/mvp/views/TaskView.kt
+2
-0
CpdService.java
...app/src/main/java/com/mints/goodmoney/net/CpdService.java
+1
-2
TaskActivity.kt
...ain/java/com/mints/goodmoney/ui/activitys/TaskActivity.kt
+11
-2
TaskDialog.kt
...rc/main/java/com/mints/goodmoney/ui/widgets/TaskDialog.kt
+1
-2
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/mvp/presenters/TaskPresenter.kt
View file @
26d3ffac
...
...
@@ -79,6 +79,7 @@ class TaskPresenter : BasePresenter<TaskView>() {
view
.
getCpdModelSuc
(
data
)
}
}
else
{
view
.
getCpdModelFail
()
view
.
showToast
(
response
.
message
)
}
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/mvp/views/TaskView.kt
View file @
26d3ffac
...
...
@@ -6,4 +6,6 @@ interface TaskView : BaseView {
fun
getShCpdTimeSuc
(
time
:
Int
,
CPD
:
Int
,
CPD_SYD
:
Int
)
fun
getCpdModelSuc
(
dataBean
:
CpdModelBean
.
DataBean
)
fun
getCpdModelFail
()
}
\ No newline at end of file
GoodMoney/app/src/main/java/com/mints/goodmoney/net/CpdService.java
View file @
26d3ffac
...
...
@@ -46,8 +46,7 @@ public interface CpdService {
class
Factory
{
private
Factory
()
{
}
private
Factory
()
{
}
private
static
CpdService
sCpdService
;
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/TaskActivity.kt
View file @
26d3ffac
...
...
@@ -167,7 +167,9 @@ class TaskActivity : BaseActivity(), TaskView,
mFakeTaskList
.
add
(
tzTaskBean
)
}
// 多拉取的广告
LogUtil
.
d
(
TAG_LOG
,
"CPD -> getCpdModelSuc"
)
// 多拉取的CPD广告
if
(
cpdLoadCountTime
++
==
cpdMax
-
1
)
{
hideLoading
()
srl_task
.
finishRefresh
()
...
...
@@ -187,6 +189,13 @@ class TaskActivity : BaseActivity(), TaskView,
}
}
override
fun
getCpdModelFail
()
{
if
(
cpdLoadCountTime
==
cpdMax
-
1
)
{
hideLoading
()
srl_task
.
finishRefresh
()
}
}
override
fun
onRefresh
(
refreshLayout
:
RefreshLayout
)
{
loadData
()
}
...
...
@@ -343,8 +352,8 @@ class TaskActivity : BaseActivity(), TaskView,
if
(
mFakeTaskList
[
position
].
isShCpd
)
{
taskDialog
=
TaskDialog
(
this
)
taskDialog
?.
setData
(
mFakeTaskList
[
position
].
coralAd
,
needUseTime
,
mCoin
)
taskDialog
?.
show
()
taskDialog
?.
setData
(
mFakeTaskList
[
position
].
coralAd
,
needUseTime
,
mCoin
)
}
else
{
taskCpdDialog
=
TaskCpdDialog
(
this
,
object
:
DialogListener
()
{
override
fun
onClick
(
v
:
View
?)
{
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/widgets/TaskDialog.kt
View file @
26d3ffac
...
...
@@ -14,8 +14,7 @@ import com.tz.sdk.core.ui.ADContainer
/**
* 提示弹框
*/
class
TaskDialog
(
context
:
Context
)
:
Dialog
(
context
,
R
.
style
.
dialog
)
{
class
TaskDialog
(
context
:
Context
)
:
Dialog
(
context
,
R
.
style
.
dialog
)
{
private
val
lp
:
WindowManager
.
LayoutParams
private
val
tvTitle
:
TextView
private
val
tvText1
:
TextView
...
...
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