Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
L
LuckyFarm
Project
Project
Details
Activity
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王雪伟
LuckyFarm
Commits
fd8ceb10
Commit
fd8ceb10
authored
Dec 02, 2020
by
maxiaoliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改金币任务item背景,看广告视频按钮只有立即领取时晃动,修改广告
parent
12f0fb8e
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
25 deletions
+34
-25
SpeedWaterTaskAdapter.kt
...rc/main/java/com/ym/game/adapter/SpeedWaterTaskAdapter.kt
+1
-1
WateringTaskAdpater.kt
app/src/main/java/com/ym/game/adapter/WateringTaskAdpater.kt
+1
-1
MainDialog.kt
app/src/main/java/com/ym/game/view/MainDialog.kt
+7
-0
withdraw_bg.png
app/src/main/res/drawable-xhdpi/withdraw_bg.png
+0
-0
AdUtils.kt
library/src/main/java/com/ym/library/utils/AdUtils.kt
+25
-23
No files found.
app/src/main/java/com/ym/game/adapter/SpeedWaterTaskAdapter.kt
View file @
fd8ceb10
...
@@ -71,7 +71,7 @@ class SpeedWaterTaskAdapter :
...
@@ -71,7 +71,7 @@ class SpeedWaterTaskAdapter :
holder
?.
imglucky
.
visibility
=
View
.
VISIBLE
holder
?.
imglucky
.
visibility
=
View
.
VISIBLE
}
}
if
(
data
?.
buttonSway
!=
null
&&
data
?.
buttonSway
==
1
)
{
if
(
data
?.
buttonSway
!=
null
&&
data
?.
buttonSway
==
1
&&
data
?.
status
!=
1
)
{
startAnimator
(
holder
?.
ivStatus
)
startAnimator
(
holder
?.
ivStatus
)
}
else
{
}
else
{
holder
?.
ivStatus
.
clearAnimation
()
holder
?.
ivStatus
.
clearAnimation
()
...
...
app/src/main/java/com/ym/game/adapter/WateringTaskAdpater.kt
View file @
fd8ceb10
...
@@ -68,7 +68,7 @@ class WateringTaskAdpater :
...
@@ -68,7 +68,7 @@ class WateringTaskAdpater :
holder
?.
imglucky
.
visibility
=
View
.
VISIBLE
holder
?.
imglucky
.
visibility
=
View
.
VISIBLE
}
}
if
(
data
?.
buttonSway
!=
null
&&
data
?.
buttonSway
==
1
)
{
if
(
data
?.
buttonSway
!=
null
&&
data
?.
buttonSway
==
1
&&
data
?.
status
!=
1
)
{
startAnimator
(
holder
?.
ivStatus
)
startAnimator
(
holder
?.
ivStatus
)
}
else
{
}
else
{
startAnimator2
(
holder
?.
ivStatus
)
startAnimator2
(
holder
?.
ivStatus
)
...
...
app/src/main/java/com/ym/game/view/MainDialog.kt
View file @
fd8ceb10
...
@@ -613,6 +613,13 @@ object MainDialog {
...
@@ -613,6 +613,13 @@ object MainDialog {
onClickListener
.
onClick
(
it
)
onClickListener
.
onClick
(
it
)
mDialog
.
dismiss
()
mDialog
.
dismiss
()
}
}
mDialog
.
setOnDismissListener
(
object
:
DialogInterface
.
OnDismissListener
{
override
fun
onDismiss
(
p0
:
DialogInterface
?)
{
onDestroy
()
AdUtils
.
loadFeedCacheAdToCache
(
activity
)
}
})
mDialog
?.
setCanceledOnTouchOutside
(
false
)
mDialog
?.
setCanceledOnTouchOutside
(
false
)
mDialog
?.
setCancelable
(
false
)
mDialog
?.
setCancelable
(
false
)
mDialog
?.
show
()
mDialog
?.
show
()
...
...
app/src/main/res/drawable-xhdpi/withdraw_bg.png
View replaced file @
12f0fb8e
View file @
fd8ceb10
2.78 KB
|
W:
|
H:
1.1 KB
|
W:
|
H:
2-up
Swipe
Onion skin
library/src/main/java/com/ym/library/utils/AdUtils.kt
View file @
fd8ceb10
...
@@ -51,13 +51,6 @@ object AdUtils {
...
@@ -51,13 +51,6 @@ object AdUtils {
fun
showFeedAd
(
activity
:
Activity
,
actionName
:
String
,
view
:
FrameLayout
)
{
fun
showFeedAd
(
activity
:
Activity
,
actionName
:
String
,
view
:
FrameLayout
)
{
try
{
view
.
postDelayed
(
object
:
Runnable
{
override
fun
run
()
{
if
(
activity
?.
isFinishing
){
return
}
activity
?.
runOnUiThread
()
{
AdManager
.
showFeedAd
(
AdManager
.
showFeedAd
(
ADConfig
.
AD_IMG_FADE
,
ADConfig
.
AD_IMG_FADE
,
actionName
,
actionName
,
...
@@ -69,11 +62,20 @@ object AdUtils {
...
@@ -69,11 +62,20 @@ object AdUtils {
activity
,
activity
,
view
view
)
)
}
// try {
}
// view.postDelayed(object :Runnable {
},
500
)
// override fun run() {
}
catch
(
e
:
Exception
)
{
// if(activity?.isFinishing){
}
// return
// }
//
// activity?.runOnUiThread() {
//
// }
// }
// },0)
// } 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