Commit 6e590c3e authored by jyx's avatar jyx

CPD优先展示逻辑优化,部分大图压缩

parent d3788873
...@@ -168,21 +168,41 @@ class TaskCpdFragment : BaseFragment(), TaskView, ...@@ -168,21 +168,41 @@ class TaskCpdFragment : BaseFragment(), TaskView,
} }
// 珊瑚和CPD展示顺序 // 珊瑚和CPD展示顺序
if (CPD_ORDER == "CPD_SYD") { when (CPD_ORDER) {
if (cpdMax > 0) { "CPD_SYD" -> {
when {
cpdMax > 0 -> {
// 拉取数组数据 // 拉取数组数据
// loadCPDDataList() // loadCPDDataList()
// 循环拉取数据 // 循环拉取数据
loadCPDDataCycle() loadCPDDataCycle()
} }
} else if (CPD_ORDER == "CPD_SH") { shMax > 0 -> {
if (shMax > 0) {
loadShDataList() loadShDataList()
} }
} else { else -> {
notifyDataAndShowAd()
}
}
}
"CPD_SH" -> {
when {
shMax > 0 -> {
loadShDataList()
}
cpdMax > 0 -> {
loadCPDDataCycle()
}
else -> {
notifyDataAndShowAd() notifyDataAndShowAd()
} }
} }
}
else -> {
notifyDataAndShowAd()
}
}
}
private fun loadShDataList() { private fun loadShDataList() {
// 珊瑚CPD广告拉取 // 珊瑚CPD广告拉取
......
app/src/main/res/mipmap-xhdpi/bg_morning_clock.png

497 KB | W: | H:

app/src/main/res/mipmap-xhdpi/bg_morning_clock.png

143 KB | W: | H:

app/src/main/res/mipmap-xhdpi/bg_morning_clock.png
app/src/main/res/mipmap-xhdpi/bg_morning_clock.png
app/src/main/res/mipmap-xhdpi/bg_morning_clock.png
app/src/main/res/mipmap-xhdpi/bg_morning_clock.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -4,5 +4,5 @@ ...@@ -4,5 +4,5 @@
# Location of the SDK. This is only used by Gradle. # Location of the SDK. This is only used by Gradle.
# For customization when using a Version Control System, please read the # For customization when using a Version Control System, please read the
# header note. # header note.
#Wed Mar 10 10:02:25 CST 2021 #Wed Mar 10 19:20:57 CST 2021
sdk.dir=/Users/mcg/Library/Android/sdk sdk.dir=/Users/Hello/Library/Android/sdk
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment