lmw
2024-06-19 046174d13aeee8ed585ab2d4e28b8bce272e0217
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() {