| | |
| | | import com.okgoincar.R |
| | | import com.okgoincar.base.BaseEvent |
| | | import com.okgoincar.base.Const |
| | | import com.okgoincar.base.MyApplication |
| | | import com.okgoincar.netUtls.getToken |
| | | import org.greenrobot.eventbus.EventBus |
| | | import org.greenrobot.eventbus.Subscribe |
| | |
| | | setContentView(R.layout.activity_start) |
| | | EventBus.getDefault().register(this) |
| | | setRxpermiss() |
| | | MyApplication.upLog("SlabStartActivity:车载端启动") |
| | | } |
| | | |
| | | |
| | | private fun callLast() { |
| | | if (getToken().isNullOrEmpty()){ |
| | |
| | | EventBus.getDefault().unregister(this) |
| | | } |
| | | |
| | | |
| | | @Subscribe(threadMode = ThreadMode.MAIN) |
| | | fun onEventMainThread(event: BaseEvent) { |
| | | when (event.code) { |