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
c578f556
Commit
c578f556
authored
Jan 14, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_ad' of
http://39.97.65.143:81/android/android_goodmoney
into dev_ad
parents
983f2ce3
15b989a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
5 deletions
+21
-5
TaskActivity.kt
...ain/java/com/mints/goodmoney/ui/activitys/TaskActivity.kt
+4
-2
activity_task.xml
GoodMoney/app/src/main/res/layout/activity_task.xml
+17
-3
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/TaskActivity.kt
View file @
c578f556
...
...
@@ -119,7 +119,6 @@ class TaskActivity : BaseActivity(), OnItemClickListener, OnRefreshListener, Cor
mTaskAdapter
?.
let
{
val
position
=
it
.
getPosition
()
if
(
mFakeTaskList
.
size
==
0
||
mFakeTaskList
[
position
].
state
==
3
)
return
val
currentPkgName
=
mFakeTaskList
[
position
].
currentPkgName
if
(
currentPkgName
!=
null
)
{
...
...
@@ -165,6 +164,7 @@ class TaskActivity : BaseActivity(), OnItemClickListener, OnRefreshListener, Cor
}
private
fun
clickDialog
(
position
:
Int
)
{
taskDialog
=
TaskDialog
(
this
)
taskDialog
?.
setData
(
mTaskList
[
position
],
needUseTime
,
mCoin
)
taskDialog
?.
show
()
...
...
@@ -175,6 +175,7 @@ class TaskActivity : BaseActivity(), OnItemClickListener, OnRefreshListener, Cor
}
override
fun
onLoadSuccess
(
dataList
:
MutableList
<
CoralAD
>?)
{
iv_empty
.
visibility
=
View
.
GONE
hideLoading
()
srl_task
.
finishRefresh
()
...
...
@@ -191,6 +192,7 @@ class TaskActivity : BaseActivity(), OnItemClickListener, OnRefreshListener, Cor
}
override
fun
onLoadFail
()
{
iv_empty
.
visibility
=
View
.
VISIBLE
showToast
(
"加载失败,请下拉刷新重试"
)
hideLoading
()
...
...
@@ -262,7 +264,7 @@ class TaskActivity : BaseActivity(), OnItemClickListener, OnRefreshListener, Cor
override
fun
onItemChildClick
(
view
:
View
?,
position
:
Int
)
{
when
(
mFakeTaskList
[
position
].
state
)
{
// 0 立即下载, 1 去试玩, 2 领取奖励
// 0 立即下载, 1 去试玩, 2 领取奖励
3 已领取 4 继续试玩
0
->
{
tryTimeOut
=
false
if
(
AppUtil
.
isOpenUsageStats
())
{
...
...
GoodMoney/app/src/main/res/layout/activity_task.xml
View file @
c578f556
...
...
@@ -19,10 +19,24 @@
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/recy_task"
<FrameLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"match_parent"
>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/recy_task"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
<ImageView
android:id=
"@+id/iv_empty"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:src=
"@mipmap/ic_record_empty"
android:visibility=
"gone"
/>
</FrameLayout>
</com.scwang.smartrefresh.layout.SmartRefreshLayout>
</LinearLayout>
\ No newline at end of file
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