|
|
@@ -1,7 +1,6 @@
|
|
|
package com.webrain.happywork.ui.activity;
|
|
|
|
|
|
import android.content.Intent;
|
|
|
-import android.media.Image;
|
|
|
import android.os.Bundle;
|
|
|
import android.view.View;
|
|
|
import android.widget.ImageView;
|
|
|
@@ -10,17 +9,14 @@ import android.widget.TextView;
|
|
|
|
|
|
import com.webrain.baselibrary.EventConstant;
|
|
|
import com.webrain.baselibrary.event.StringEvent;
|
|
|
-import com.webrain.baselibrary.event.TagValueEvent;
|
|
|
import com.webrain.baselibrary.imageloader.ImageLoaderUtil;
|
|
|
import com.webrain.happywork.AppCacheManager;
|
|
|
-import com.webrain.happywork.BuildConfig;
|
|
|
import com.webrain.happywork.R;
|
|
|
import com.webrain.happywork.bean.UserBean;
|
|
|
import com.webrain.happywork.ui.base.BaseActivity;
|
|
|
import com.webrain.happywork.ui.mvp.contacts.MineCenterContacts;
|
|
|
import com.webrain.happywork.ui.mvp.presenter.MineCenterPresenter;
|
|
|
import com.webrain.happywork.ui.widget.dialog.SureDialog;
|
|
|
-import com.webrain.happywork.utils.FileUtils;
|
|
|
|
|
|
import org.greenrobot.eventbus.EventBus;
|
|
|
import org.greenrobot.eventbus.Subscribe;
|
|
|
@@ -43,9 +39,14 @@ public class MineCenterActivity extends BaseActivity<MineCenterPresenter> implem
|
|
|
LinearLayout llPaymentRecord;
|
|
|
@BindView(R.id.ll_tax)
|
|
|
LinearLayout llTax;
|
|
|
+ @BindView(R.id.ll_version)
|
|
|
+ LinearLayout llVersion;
|
|
|
+ @BindView(R.id.tv_logout)
|
|
|
+ TextView tvLogout;
|
|
|
|
|
|
SureDialog mLogoutDialog;
|
|
|
|
|
|
+
|
|
|
@Override
|
|
|
public int getLayoutId() {
|
|
|
return R.layout.activity_mine_center;
|
|
|
@@ -64,7 +65,7 @@ public class MineCenterActivity extends BaseActivity<MineCenterPresenter> implem
|
|
|
mvpPresenter.init();
|
|
|
}
|
|
|
|
|
|
- @OnClick({R.id.ll_apply, R.id.ll_order, R.id.ll_payment_record, R.id.ll_tax, R.id.iv_header, R.id.tv_logout})
|
|
|
+ @OnClick({R.id.ll_apply, R.id.ll_order, R.id.ll_payment_record, R.id.ll_tax, R.id.iv_header, R.id.ll_version,R.id.tv_logout})
|
|
|
public void onClick(View view) {
|
|
|
switch (view.getId()) {
|
|
|
case R.id.ll_apply:
|
|
|
@@ -82,6 +83,9 @@ public class MineCenterActivity extends BaseActivity<MineCenterPresenter> implem
|
|
|
case R.id.ll_tax:
|
|
|
startActivity(new Intent(mContext, MineTaxPaymentCertificateActivity.class));
|
|
|
break;
|
|
|
+ case R.id.ll_version:
|
|
|
+ mvpPresenter.checkUpdate();
|
|
|
+ break;
|
|
|
case R.id.tv_logout:
|
|
|
if (mLogoutDialog == null) {
|
|
|
mLogoutDialog = new SureDialog(mContext);
|