|
|
@@ -6,7 +6,6 @@ import androidx.recyclerview.widget.GridLayoutManager
|
|
|
import com.alibaba.android.arouter.facade.annotation.Route
|
|
|
import com.yingyang.home.databinding.ActivityHomeBinding
|
|
|
import com.yingyangfly.baselib.dialog.TaskFragment
|
|
|
-import com.yingyangfly.baselib.dialog.TipDialogFragment
|
|
|
import com.yingyangfly.baselib.dialog.TipsDialog
|
|
|
import com.yingyangfly.baselib.ext.setOnSingleClickListener
|
|
|
import com.yingyangfly.baselib.ext.show
|
|
|
@@ -59,18 +58,18 @@ class HomeActivity : BaseMVVMActivity<ActivityHomeBinding, HomeViewModel>() {
|
|
|
rvGame.adapter = gameAdapter
|
|
|
gameAdapter.onGameImageClickListener = {
|
|
|
if (it.currentLevel == it.totalNum) {
|
|
|
- TipDialogFragment.TipDialogBuilder()
|
|
|
- .title("当前游戏已通关,是否重新开始?", 0)
|
|
|
- .leftBtnText("确定")
|
|
|
- .rightBtnText("取消")
|
|
|
+ TipsDialog.TipDialogBuilder()
|
|
|
+ .title("恭喜您")
|
|
|
+ .content("当前游戏已通关,是否重新开始?")
|
|
|
+ .leftBtnText("取消")
|
|
|
+ .rightBtnText("确定")
|
|
|
.leftClick({
|
|
|
- jumpWebView(it, true)
|
|
|
null
|
|
|
}, true)
|
|
|
.rightClick({
|
|
|
+ jumpWebView(it, true)
|
|
|
null
|
|
|
}, true)
|
|
|
- .outCancel(true)
|
|
|
.show(supportFragmentManager)
|
|
|
} else {
|
|
|
jumpWebView(it, false)
|
|
|
@@ -307,8 +306,9 @@ class HomeActivity : BaseMVVMActivity<ActivityHomeBinding, HomeViewModel>() {
|
|
|
* 训练完成弹窗页面
|
|
|
*/
|
|
|
private fun showTipDialog() {
|
|
|
- TipsDialog.TipDialogBuilder().title("恭喜您")
|
|
|
- .content("恭喜您 您完成了今天的专属训练!今天的训练报告已生成,快去查看吧!")
|
|
|
+ TipsDialog.TipDialogBuilder()
|
|
|
+ .title("恭喜您")
|
|
|
+ .content("您完成了今天的专属训练!今天的训练报告已生成,快去查看吧!")
|
|
|
.leftBtnText("稍后再看")
|
|
|
.rightBtnText("立即查看")
|
|
|
.leftClick({
|