From 046174d13aeee8ed585ab2d4e28b8bce272e0217 Mon Sep 17 00:00:00 2001 From: lmw <125975490@qq.com> Date: 星期三, 19 六月 2024 17:25:40 +0800 Subject: [PATCH] 文件管理权限移到里面 --- app/src/main/java/com/dollearn/student/MainActivity.kt | 13 ------------- 1 files changed, 0 insertions(+), 13 deletions(-) diff --git a/app/src/main/java/com/dollearn/student/MainActivity.kt b/app/src/main/java/com/dollearn/student/MainActivity.kt index 7fb3950..2f671f4 100644 --- a/app/src/main/java/com/dollearn/student/MainActivity.kt +++ b/app/src/main/java/com/dollearn/student/MainActivity.kt @@ -99,9 +99,6 @@ fun onSwitch(e:EmptyEvent){ if (e.code == Const.EventCode.SWITCH_HOME){ switchHome() - }else if(e.code == Const.EventCode.CHANGE_STARTCLASS){ - tab_bar.currentTab = 1 - onTabSelect(1) }else if(e.code == Const.EventCode.CHANGE_WELFARE){ tab_bar.currentTab = 2 onTabSelect(2) @@ -143,16 +140,6 @@ super.onResume() if (tab_bar.currentTab == 1) EventBus.getDefault().post(EmptyEvent(Const.EventCode.CHANGE_COURSDATA)) - checkCompetition() - } - - private fun checkCompetition() { - HttpManager.getCompletedWorldCupTips().request(this,false){_,data-> - if (data?:0!=0){ - val competitionTipDialog = CompetitionTipDialog() - competitionTipDialog.showAllowingStateLoss(supportFragmentManager,"ct") - } - } } override fun onDestroy() { -- Gitblit v1.7.1