Commit bd678a3d authored by mengcuiguang2's avatar mengcuiguang2

代码优化

parent c6569921
...@@ -433,27 +433,27 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener { ...@@ -433,27 +433,27 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
ExpressManager.loadExpress() ExpressManager.loadExpress()
// TTPreLoadCarrierExpressManager.getInstance().loadTtFrameLayout(TtCsjAdManager.TT_AD_NATIVEEXPRESS_WATER) // TTPreLoadCarrierExpressManager.getInstance().loadTtFrameLayout(TtCsjAdManager.TT_AD_NATIVEEXPRESS_WATER)
readyGo(WaterActivity::class.java) readyGo(WaterActivity::class.java)
homePresenter.activeGuidanceTips(Constant.STATUS_CODE_TWO, Constant.HOT_ACTIVITY_WATER) homePresenter.activeGuidanceTips(Constant.STATUS_CODE_TWO,flhost.activeKey)
} }
Constant.HOT_ACTIVITY_WALK -> { Constant.HOT_ACTIVITY_WALK -> {
ExpressManager.loadExpress() ExpressManager.loadExpress()
// TTPreLoadCarrierExpressManager.getInstance().loadTtFrameLayout(TtCsjAdManager.TT_AD_NATIVEEXPRESS_WALK) // TTPreLoadCarrierExpressManager.getInstance().loadTtFrameLayout(TtCsjAdManager.TT_AD_NATIVEEXPRESS_WALK)
readyGo(WalkActivity::class.java) readyGo(WalkActivity::class.java)
homePresenter.activeGuidanceTips(Constant.STATUS_CODE_TWO, Constant.HOT_ACTIVITY_WALK) homePresenter.activeGuidanceTips(Constant.STATUS_CODE_TWO, flhost.activeKey)
} }
Constant.HOT_ACTIVITY_CARD -> { Constant.HOT_ACTIVITY_CARD -> {
readyGo(EraseActivity::class.java) readyGo(EraseActivity::class.java)
homePresenter.activeGuidanceTips(Constant.STATUS_CODE_TWO, Constant.HOT_ACTIVITY_CARD) homePresenter.activeGuidanceTips(Constant.STATUS_CODE_TWO, flhost.activeKey)
} }
Constant.HOT_ACTIVITY_LIEBAO -> { Constant.HOT_ACTIVITY_LIEBAO -> {
readyGo(LiebaoGameActivity::class.java) readyGo(LiebaoGameActivity::class.java)
homePresenter.activeGuidanceTips(Constant.STATUS_CODE_TWO, Constant.HOT_ACTIVITY_LIEBAO) homePresenter.activeGuidanceTips(Constant.STATUS_CODE_TWO, flhost.activeKey)
} }
Constant.HOT_ACTIVITY_MORNINGCLOCK -> { Constant.HOT_ACTIVITY_MORNINGCLOCK -> {
ExpressManager.loadExpress() ExpressManager.loadExpress()
// TTPreLoadCarrierExpressManager.getInstance().loadTtFrameLayout(TtCsjAdManager.TT_AD_NATIVEEXPRESS_MORNINGCLOCK) // TTPreLoadCarrierExpressManager.getInstance().loadTtFrameLayout(TtCsjAdManager.TT_AD_NATIVEEXPRESS_MORNINGCLOCK)
readyGo(MorningClockActivity::class.java) readyGo(MorningClockActivity::class.java)
homePresenter.activeGuidanceTips(Constant.STATUS_CODE_TWO, Constant.HOT_ACTIVITY_MORNINGCLOCK) homePresenter.activeGuidanceTips(Constant.STATUS_CODE_TWO, flhost.activeKey)
} }
Constant.HOT_ACTIVITY_YYZ -> { Constant.HOT_ACTIVITY_YYZ -> {
...@@ -464,13 +464,13 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener { ...@@ -464,13 +464,13 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
return return
} }
YyzManager.openYyzTask(requireActivity()) YyzManager.openYyzTask(requireActivity())
homePresenter.activeGuidanceTips(Constant.STATUS_CODE_TWO, Constant.HOT_ACTIVITY_YYZ) homePresenter.activeGuidanceTips(Constant.STATUS_CODE_TWO, flhost.activeKey)
} }
Constant.HOT_ACTIVITY_EAT -> { Constant.HOT_ACTIVITY_EAT -> {
ExpressManager.loadExpress() ExpressManager.loadExpress()
// TTPreLoadCarrierExpressManager.getInstance().loadTtFrameLayout(TtCsjAdManager.TT_AD_NATIVEEXPRESS_EAT) // TTPreLoadCarrierExpressManager.getInstance().loadTtFrameLayout(TtCsjAdManager.TT_AD_NATIVEEXPRESS_EAT)
readyGo(FoodSubsidyActivity::class.java) readyGo(FoodSubsidyActivity::class.java)
homePresenter.activeGuidanceTips(Constant.STATUS_CODE_TWO, Constant.HOT_ACTIVITY_EAT) homePresenter.activeGuidanceTips(Constant.STATUS_CODE_TWO, flhost.activeKey)
} }
Constant.HOT_ACTIVITY_SHARE_NEWS -> { Constant.HOT_ACTIVITY_SHARE_NEWS -> {
...@@ -480,7 +480,7 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener { ...@@ -480,7 +480,7 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
return return
} }
shareArticle(300) shareArticle(300)
homePresenter.activeGuidanceTips(Constant.STATUS_CODE_TWO, Constant.HOT_ACTIVITY_SHARE_NEWS) homePresenter.activeGuidanceTips(Constant.STATUS_CODE_TWO, flhost.activeKey)
} }
Constant.HOT_ACTIVITY_CPD -> { Constant.HOT_ACTIVITY_CPD -> {
if (!UserManager.getInstance().userIsLogin()) { if (!UserManager.getInstance().userIsLogin()) {
...@@ -490,11 +490,11 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener { ...@@ -490,11 +490,11 @@ class MainFragment : BaseFragment(), HomeView, View.OnClickListener {
} }
carrierType = "" carrierType = ""
readyGo(TaskCpdActivity::class.java) readyGo(TaskCpdActivity::class.java)
homePresenter.activeGuidanceTips(Constant.STATUS_CODE_TWO, Constant.HOT_ACTIVITY_CPD) homePresenter.activeGuidanceTips(Constant.STATUS_CODE_TWO, flhost.activeKey)
} }
Constant.HOT_ACTIVITY_MOKU -> {//截图任务 Constant.HOT_ACTIVITY_MOKU -> {//截图任务
gotoMoku() gotoMoku()
homePresenter.activeGuidanceTips(Constant.STATUS_CODE_TWO, Constant.HOT_ACTIVITY_MOKU) homePresenter.activeGuidanceTips(Constant.STATUS_CODE_TWO,flhost.activeKey)
} }
else -> { else -> {
if (!TextUtils.isEmpty(flhost.key) && !TextUtils.isEmpty(flhost.title)) { if (!TextUtils.isEmpty(flhost.key) && !TextUtils.isEmpty(flhost.title)) {
......
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