| | |
| | | import com.umeng.socialize.media.UMWeb |
| | | import kotlinx.android.synthetic.main.activity_mine.* |
| | | import kotlinx.android.synthetic.main.pop_share.view.* |
| | | import org.greenrobot.eventbus.EventBus |
| | | import org.jetbrains.anko.startActivity |
| | | |
| | | class MineActivity: MyBaseActivity() { |
| | |
| | | rl_login_out.setOnClickListener { |
| | | DialogUtil.getDelAndSureDialog(this,"是否退出登录?",{},{ |
| | | CacheUtil.get().clear() |
| | | CacheKey.putKeyStr("isAgreen", "1") |
| | | NettyClient.getInstance().stopService() |
| | | MyApplication.isLogin = false |
| | | EventBus.getDefault().post(BaseEvent(BaseEvent.OUT_APP)) |
| | | startActivity<LoginActivity>() |
| | | }) |
| | | } |