557 lines
22 KiB
Java
557 lines
22 KiB
Java
package com.ubt.jimu.user.view;
|
|
|
|
import android.app.Activity;
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.graphics.Typeface;
|
|
import android.os.Bundle;
|
|
import android.text.Editable;
|
|
import android.text.TextUtils;
|
|
import android.text.TextWatcher;
|
|
import android.text.method.PasswordTransformationMethod;
|
|
import android.view.View;
|
|
import android.widget.Button;
|
|
import android.widget.ImageView;
|
|
import android.widget.RelativeLayout;
|
|
import android.widget.TextView;
|
|
import butterknife.ButterKnife;
|
|
import com.alibaba.android.arouter.facade.Postcard;
|
|
import com.alibaba.android.arouter.launcher.ARouter;
|
|
import com.facebook.AccessToken;
|
|
import com.ubt.jimu.BaseActivity;
|
|
import com.ubt.jimu.R;
|
|
import com.ubt.jimu.base.cache.SharePreferenceHelper;
|
|
import com.ubt.jimu.base.db.user.UserDbHandler;
|
|
import com.ubt.jimu.base.entities.User;
|
|
import com.ubt.jimu.base.event.MessageEvent;
|
|
import com.ubt.jimu.sync.OfflineDataUploadTool;
|
|
import com.ubt.jimu.transport.update.MergeTool;
|
|
import com.ubt.jimu.user.contract.LoginContract$Presenter;
|
|
import com.ubt.jimu.user.contract.LoginContract$View;
|
|
import com.ubt.jimu.user.model.RefHolder;
|
|
import com.ubt.jimu.user.presenter.LoginPresenter;
|
|
import com.ubt.jimu.utils.AnimUtils;
|
|
import com.ubt.jimu.utils.DeviceUtils;
|
|
import com.ubt.jimu.utils.LogUtils;
|
|
import com.ubt.jimu.utils.Md5Utils;
|
|
import com.ubt.jimu.utils.NetWorkUtil;
|
|
import com.ubt.jimu.utils.ShortcutHelper;
|
|
import com.ubt.jimu.utils.SoftKeyBoardListener;
|
|
import com.ubt.jimu.widgets.ClearEditText;
|
|
import com.ubt.jimu.widgets.JAlertDialog;
|
|
import com.ubtech.handler.HandlerHub;
|
|
import com.ubtech.utils.StringUtils;
|
|
import com.ubtech.utils.XLog;
|
|
import com.ubtrobot.ubtlib.social.SocialTool;
|
|
import com.ubtrobot.ubtlib.social.UbtSocial;
|
|
import com.ubtrobot.ubtlib.social.UbtSocialAuthListener;
|
|
import com.ubtrobot.ubtlib.social.UbtSocialType;
|
|
import java.util.Map;
|
|
import org.greenrobot.eventbus.EventBus;
|
|
import org.greenrobot.eventbus.Subscribe;
|
|
import org.greenrobot.eventbus.ThreadMode;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class LoginActivity extends BaseActivity implements LoginContract$View {
|
|
private LoginContract$Presenter a;
|
|
private UbtSocial b;
|
|
private SoftKeyBoardListener c;
|
|
RelativeLayout countryCodeParent;
|
|
TextView countryCodeTextView;
|
|
private UbtSocialAuthListener d = new UbtSocialAuthListener() { // from class: com.ubt.jimu.user.view.LoginActivity.2
|
|
@Override // com.ubtrobot.ubtlib.social.UbtSocialAuthListener
|
|
public void a(Map<String, String> map) {
|
|
RefHolder.a(map);
|
|
LoginActivity.this.a.a(map.get(AccessToken.ACCESS_TOKEN_KEY), map.get("ubtsocial_app_id"), map.get("social_type"), map.get("ubtsocial_user_id"));
|
|
LoginActivity.this.A();
|
|
}
|
|
|
|
@Override // com.ubtrobot.ubtlib.social.UbtSocialAuthListener
|
|
public void onCancel() {
|
|
SocialTool.a((Activity) LoginActivity.this, "用户取消");
|
|
if (LoginActivity.this.b != null) {
|
|
LoginActivity.this.b.a((UbtSocialAuthListener) null);
|
|
LoginActivity.this.b.a((UbtSocialAuthListener) null);
|
|
LoginActivity.this.b = null;
|
|
}
|
|
}
|
|
|
|
@Override // com.ubtrobot.ubtlib.social.UbtSocialAuthListener
|
|
public void a(Throwable th) {
|
|
SocialTool.a((Activity) LoginActivity.this, "授权失败");
|
|
if (LoginActivity.this.b != null) {
|
|
LoginActivity.this.b.a((UbtSocialAuthListener) null);
|
|
LoginActivity.this.b = null;
|
|
}
|
|
}
|
|
};
|
|
private JAlertDialog e;
|
|
ImageView facebookImageView;
|
|
TextView findPwdTextView;
|
|
Button loginLayout;
|
|
ClearEditText passwordEditText;
|
|
ClearEditText phoneEditText;
|
|
ImageView qqImageView;
|
|
RelativeLayout rlTips;
|
|
ImageView twitterImageView;
|
|
ImageView wechatImageView;
|
|
|
|
private void F0() {
|
|
this.phoneEditText.setImeOptions(5);
|
|
this.phoneEditText.setImeOptions(268435456);
|
|
this.passwordEditText.setImeOptions(6);
|
|
this.passwordEditText.setImeOptions(268435456);
|
|
}
|
|
|
|
private void G0() {
|
|
this.c = new SoftKeyBoardListener(this);
|
|
SoftKeyBoardListener.a(this.c, new SoftKeyBoardListener.OnSoftKeyBoardChangeListener() { // from class: com.ubt.jimu.user.view.LoginActivity.1
|
|
@Override // com.ubt.jimu.utils.SoftKeyBoardListener.OnSoftKeyBoardChangeListener
|
|
public void a(int i) {
|
|
if (LoginActivity.this.phoneEditText.hasFocus()) {
|
|
LoginActivity.this.phoneEditText.clearFocus();
|
|
}
|
|
}
|
|
|
|
@Override // com.ubt.jimu.utils.SoftKeyBoardListener.OnSoftKeyBoardChangeListener
|
|
public void b(int i) {
|
|
}
|
|
});
|
|
}
|
|
|
|
private void H0() {
|
|
Map<String, String> b = RefHolder.b();
|
|
if (b == null) {
|
|
hideLoading();
|
|
return;
|
|
}
|
|
String str = b.get("nick_name");
|
|
String str2 = b.get("head_image");
|
|
LoginContract$Presenter loginContract$Presenter = this.a;
|
|
String str3 = b.get(AccessToken.ACCESS_TOKEN_KEY);
|
|
String str4 = b.get("ubtsocial_app_id");
|
|
String str5 = b.get("social_type");
|
|
String str6 = b.get("ubtsocial_user_id");
|
|
String str7 = b.get("ubtsocial_user_id");
|
|
if (TextUtils.isEmpty(str)) {
|
|
str = "";
|
|
}
|
|
loginContract$Presenter.a(str3, str4, str5, str6, str7, str, TextUtils.isEmpty(str2) ? "" : str2);
|
|
RefHolder.a();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public void f(final User user) {
|
|
LogUtils.c("登录成功:" + user);
|
|
HandlerHub.a().post(new Runnable() { // from class: com.ubt.jimu.user.view.h
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
LoginActivity.this.e(user);
|
|
}
|
|
});
|
|
}
|
|
|
|
private void g(final User user) {
|
|
h(user);
|
|
ShortcutHelper.b(this);
|
|
MergeTool.a(this, new MergeTool.IMergeListener() { // from class: com.ubt.jimu.user.view.LoginActivity.7
|
|
@Override // com.ubt.jimu.transport.update.MergeTool.IMergeListener
|
|
public void a(boolean z) {
|
|
LoginActivity.this.f(user);
|
|
LogUtils.c("数据合并:" + z);
|
|
if (z) {
|
|
OfflineDataUploadTool.h().d();
|
|
}
|
|
}
|
|
|
|
@Override // com.ubt.jimu.transport.update.MergeTool.IMergeListener
|
|
public void onFailed() {
|
|
LogUtils.c("合并失败");
|
|
LoginActivity.this.f(user);
|
|
}
|
|
|
|
@Override // com.ubt.jimu.transport.update.MergeTool.IMergeListener
|
|
public void onStart() {
|
|
}
|
|
});
|
|
}
|
|
|
|
private void h(User user) {
|
|
if (user != null) {
|
|
SharePreferenceHelper sharePreferenceHelper = new SharePreferenceHelper();
|
|
sharePreferenceHelper.put(SharePreferenceHelper.AUTHOR_TOKEN, user.getToken());
|
|
sharePreferenceHelper.put(SharePreferenceHelper.SP_KEY_USER_ID, String.valueOf(user.getUserId()));
|
|
UserDbHandler.save(user);
|
|
}
|
|
}
|
|
|
|
private void initView() {
|
|
new LoginPresenter(this, this);
|
|
View.OnClickListener onClickListener = new View.OnClickListener() { // from class: com.ubt.jimu.user.view.LoginActivity.3
|
|
@Override // android.view.View.OnClickListener
|
|
public void onClick(View view) {
|
|
UbtSocialType ubtSocialType;
|
|
switch (view.getId()) {
|
|
case R.id.facebookImageView /* 2131296599 */:
|
|
ubtSocialType = UbtSocialType.FACEBOOK;
|
|
break;
|
|
case R.id.qqImageView /* 2131297278 */:
|
|
ubtSocialType = UbtSocialType.QQ;
|
|
break;
|
|
case R.id.twitterImageView /* 2131297886 */:
|
|
ubtSocialType = UbtSocialType.TWITTER;
|
|
break;
|
|
case R.id.wechatImageView /* 2131297975 */:
|
|
ubtSocialType = UbtSocialType.WECHAT;
|
|
break;
|
|
default:
|
|
ubtSocialType = null;
|
|
break;
|
|
}
|
|
LoginActivity loginActivity = LoginActivity.this;
|
|
loginActivity.b = UbtSocial.a(loginActivity, ubtSocialType);
|
|
if (LoginActivity.this.b.b()) {
|
|
LoginActivity.this.b.a(LoginActivity.this.d);
|
|
LoginActivity.this.b.a();
|
|
} else {
|
|
LoginActivity loginActivity2 = LoginActivity.this;
|
|
loginActivity2.toastError(loginActivity2.getString(R.string.app_not_install));
|
|
}
|
|
}
|
|
};
|
|
this.qqImageView.setOnClickListener(onClickListener);
|
|
this.wechatImageView.setOnClickListener(onClickListener);
|
|
this.twitterImageView.setOnClickListener(onClickListener);
|
|
this.facebookImageView.setOnClickListener(onClickListener);
|
|
this.loginLayout.setEnabled(false);
|
|
this.phoneEditText.addTextChangedListener(new TextWatcher() { // from class: com.ubt.jimu.user.view.LoginActivity.4
|
|
@Override // android.text.TextWatcher
|
|
public void afterTextChanged(Editable editable) {
|
|
if (TextUtils.isEmpty(editable.toString().trim())) {
|
|
LoginActivity.this.loginLayout.setEnabled(false);
|
|
} else {
|
|
if (LoginActivity.this.loginLayout.isEnabled() || TextUtils.isEmpty(LoginActivity.this.countryCodeTextView.getText().toString().trim()) || TextUtils.isEmpty(LoginActivity.this.passwordEditText.getText().toString().trim())) {
|
|
return;
|
|
}
|
|
LoginActivity.this.loginLayout.setEnabled(true);
|
|
}
|
|
}
|
|
|
|
@Override // android.text.TextWatcher
|
|
public void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) {
|
|
}
|
|
|
|
@Override // android.text.TextWatcher
|
|
public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {
|
|
}
|
|
});
|
|
this.phoneEditText.setOnFocuschangeListener(new ClearEditText.onFocuschangeListener() { // from class: com.ubt.jimu.user.view.LoginActivity.5
|
|
@Override // com.ubt.jimu.widgets.ClearEditText.onFocuschangeListener
|
|
public void a(boolean z) {
|
|
if (z) {
|
|
if (LoginActivity.this.rlTips.getVisibility() == 0) {
|
|
LoginActivity.this.rlTips.setVisibility(8);
|
|
}
|
|
} else if (TextUtils.isEmpty(LoginActivity.this.phoneEditText.getText().toString().trim())) {
|
|
LoginActivity.this.rlTips.setVisibility(8);
|
|
LoginActivity.this.countryCodeParent.setVisibility(8);
|
|
} else {
|
|
if (StringUtils.f(LoginActivity.this.phoneEditText.getText().toString().trim())) {
|
|
LoginActivity.this.rlTips.setVisibility(8);
|
|
LoginActivity.this.countryCodeParent.setVisibility(0);
|
|
return;
|
|
}
|
|
LoginActivity.this.countryCodeParent.setVisibility(8);
|
|
if (LoginActivity.this.phoneEditText.getText().toString().trim().contains("@")) {
|
|
LoginActivity.this.rlTips.setVisibility(8);
|
|
} else {
|
|
LoginActivity.this.rlTips.setVisibility(0);
|
|
LoginActivity.this.rlTips.startAnimation(AnimUtils.a(5));
|
|
}
|
|
}
|
|
}
|
|
});
|
|
this.passwordEditText.addTextChangedListener(new TextWatcher() { // from class: com.ubt.jimu.user.view.LoginActivity.6
|
|
@Override // android.text.TextWatcher
|
|
public void afterTextChanged(Editable editable) {
|
|
if (TextUtils.isEmpty(editable.toString().trim())) {
|
|
LoginActivity.this.loginLayout.setEnabled(false);
|
|
} else {
|
|
if (LoginActivity.this.loginLayout.isEnabled() || TextUtils.isEmpty(LoginActivity.this.countryCodeTextView.getText().toString().trim()) || TextUtils.isEmpty(LoginActivity.this.phoneEditText.getText().toString().trim())) {
|
|
return;
|
|
}
|
|
LoginActivity.this.loginLayout.setEnabled(true);
|
|
}
|
|
}
|
|
|
|
@Override // android.text.TextWatcher
|
|
public void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) {
|
|
}
|
|
|
|
@Override // android.text.TextWatcher
|
|
public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {
|
|
}
|
|
});
|
|
this.passwordEditText.setTypeface(Typeface.DEFAULT);
|
|
this.passwordEditText.setTransformationMethod(new PasswordTransformationMethod());
|
|
F0();
|
|
}
|
|
|
|
public static void start(Context context) {
|
|
ARouter.b().a("/account/login").t();
|
|
}
|
|
|
|
@Override // com.ubt.jimu.user.contract.LoginContract$View
|
|
public void A() {
|
|
HandlerHub.a().post(new Runnable() { // from class: com.ubt.jimu.user.view.g
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
LoginActivity.this.E0();
|
|
}
|
|
});
|
|
}
|
|
|
|
public /* synthetic */ void D0() {
|
|
if (this.e == null || isFinishing() || isDestroyed()) {
|
|
return;
|
|
}
|
|
this.e.dismiss();
|
|
this.e = null;
|
|
}
|
|
|
|
public /* synthetic */ void E0() {
|
|
JAlertDialog jAlertDialog = this.e;
|
|
if ((jAlertDialog != null && jAlertDialog.isShowing()) || isFinishing() || isDestroyed()) {
|
|
return;
|
|
}
|
|
JAlertDialog.Builder builder = new JAlertDialog.Builder(this);
|
|
builder.a(R.drawable.ic_loading);
|
|
builder.b(R.string.state_login);
|
|
builder.a(true);
|
|
this.e = builder.a();
|
|
this.e.show();
|
|
}
|
|
|
|
@Override // com.ubt.jimu.user.contract.LoginContract$View
|
|
public void d(boolean z) {
|
|
if (!z) {
|
|
H0();
|
|
return;
|
|
}
|
|
hideLoading();
|
|
Postcard a = ARouter.b().a("/account/register");
|
|
a.a("back_path", "/account/login");
|
|
a.a("loginType", 2);
|
|
a.a(this, 20);
|
|
}
|
|
|
|
public /* synthetic */ void e(User user) {
|
|
JAlertDialog jAlertDialog = this.e;
|
|
if (jAlertDialog != null) {
|
|
jAlertDialog.dismiss();
|
|
}
|
|
if (user != null) {
|
|
XLog.c(this.TAG, user.toString());
|
|
Intent intent = new Intent();
|
|
intent.putExtra("user", user);
|
|
setResult(-1, intent);
|
|
EventBus.b().b(new MessageEvent(0));
|
|
finish();
|
|
}
|
|
}
|
|
|
|
@Override // com.ubt.jimu.BaseActivity
|
|
protected void hideLoading() {
|
|
super.hideLoading();
|
|
JAlertDialog jAlertDialog = this.e;
|
|
if (jAlertDialog == null) {
|
|
return;
|
|
}
|
|
try {
|
|
jAlertDialog.dismiss();
|
|
this.e = null;
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
|
|
@Override // com.ubt.jimu.user.contract.LoginContract$View
|
|
public void j(String str) {
|
|
JAlertDialog jAlertDialog = this.e;
|
|
if (jAlertDialog != null) {
|
|
if (TextUtils.isEmpty(str)) {
|
|
str = getString(R.string.login_fail);
|
|
}
|
|
jAlertDialog.a(str);
|
|
}
|
|
HandlerHub.a().postDelayed(new Runnable() { // from class: com.ubt.jimu.user.view.f
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
LoginActivity.this.D0();
|
|
}
|
|
}, 1000L);
|
|
}
|
|
|
|
@Override // androidx.fragment.app.FragmentActivity, android.app.Activity
|
|
protected void onActivityResult(int i, int i2, Intent intent) {
|
|
super.onActivityResult(i, i2, intent);
|
|
if (19 == i) {
|
|
if (-1 == i2) {
|
|
User user = (User) intent.getSerializableExtra("user");
|
|
h(user);
|
|
if (user != null) {
|
|
A();
|
|
LogUtils.c("onActivityResult:" + user.getToken());
|
|
this.a.a(user, DeviceUtils.a((Context) this));
|
|
}
|
|
} else {
|
|
hideLoading();
|
|
}
|
|
}
|
|
UbtSocial ubtSocial = this.b;
|
|
if (ubtSocial != null) {
|
|
ubtSocial.a(i, i2, intent);
|
|
}
|
|
if (i2 == -1 && i != 17 && i == 18) {
|
|
String stringExtra = intent.getStringExtra("country_code");
|
|
String stringExtra2 = intent.getStringExtra("country_name");
|
|
this.countryCodeTextView.setText(stringExtra + " (" + stringExtra2 + ") ");
|
|
}
|
|
}
|
|
|
|
public void onCountryCodeAction(View view) {
|
|
String charSequence = this.countryCodeTextView.getText().toString();
|
|
String substring = !TextUtils.isEmpty(charSequence) ? charSequence.substring(charSequence.indexOf("+"), charSequence.lastIndexOf("(") - 1) : null;
|
|
Postcard a = ARouter.b().a("/account/countrycode");
|
|
a.a("selected_code", substring);
|
|
a.a(this, 18);
|
|
}
|
|
|
|
@Override // com.ubt.jimu.BaseActivity, com.ubt.jimu.ScreenRotationManageActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.core.app.ComponentActivity, android.app.Activity
|
|
protected void onCreate(Bundle bundle) {
|
|
super.onCreate(bundle);
|
|
setContentView(R.layout.activity_login);
|
|
ButterKnife.a(this);
|
|
EventBus.b().c(this);
|
|
initView();
|
|
G0();
|
|
this.a.b();
|
|
}
|
|
|
|
@Override // com.ubt.jimu.BaseActivity, com.ubt.jimu.ScreenRotationManageActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, android.app.Activity
|
|
protected void onDestroy() {
|
|
EventBus.b().d(this);
|
|
SoftKeyBoardListener softKeyBoardListener = this.c;
|
|
if (softKeyBoardListener != null) {
|
|
softKeyBoardListener.a();
|
|
this.c = null;
|
|
}
|
|
super.onDestroy();
|
|
}
|
|
|
|
public void onFindPasswordAction(View view) {
|
|
FindPasswordActivity.start(this, this.phoneEditText.getText().toString().trim(), this.countryCodeTextView.getText().toString().trim());
|
|
}
|
|
|
|
@Subscribe(threadMode = ThreadMode.MAIN)
|
|
public void onHandleUiEvent(MessageEvent messageEvent) {
|
|
int type = messageEvent.getType();
|
|
if (type == 0) {
|
|
finish();
|
|
} else if (type == 4 || type == 7) {
|
|
finish();
|
|
}
|
|
}
|
|
|
|
public void onLoginAction(View view) {
|
|
if (!NetWorkUtil.b(this)) {
|
|
toastError(getString(R.string.network_error));
|
|
return;
|
|
}
|
|
String trim = this.phoneEditText.getText().toString().trim();
|
|
String trim2 = this.countryCodeTextView.getText().toString().trim();
|
|
if (!trim.contains("@") && TextUtils.isEmpty(trim2)) {
|
|
this.countryCodeParent.setVisibility(0);
|
|
this.rlTips.setVisibility(8);
|
|
this.countryCodeParent.startAnimation(AnimUtils.a(5));
|
|
return;
|
|
}
|
|
String replace = trim.contains("@") ? "" : trim2.substring(trim2.indexOf("+") + 1, trim2.indexOf("(") - 1).replace(" ", "");
|
|
if (!trim.contains("@") && !StringUtils.f(trim)) {
|
|
this.countryCodeParent.setVisibility(8);
|
|
this.rlTips.setVisibility(0);
|
|
this.rlTips.startAnimation(AnimUtils.a(5));
|
|
return;
|
|
}
|
|
String trim3 = this.passwordEditText.getText().toString().trim();
|
|
if (trim3.length() < 6) {
|
|
toastError(getString(R.string.password_len_error_1));
|
|
return;
|
|
}
|
|
if (trim3.length() > 16) {
|
|
toastError(getString(R.string.password_len_error_2));
|
|
return;
|
|
}
|
|
if (!com.ubt.jimu.utils.TextUtils.d(trim3)) {
|
|
toastError(getString(R.string.password_len_error_3));
|
|
return;
|
|
}
|
|
this.a.b(replace + trim, Md5Utils.a(trim3));
|
|
}
|
|
|
|
public void onRegisterAction(View view) {
|
|
Postcard a = ARouter.b().a("/account/register");
|
|
a.a("back_path", "/account/login");
|
|
a.a("loginType", 1);
|
|
a.a(this, 17);
|
|
}
|
|
|
|
@Override // androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.core.app.ComponentActivity, android.app.Activity
|
|
protected void onSaveInstanceState(Bundle bundle) {
|
|
super.onSaveInstanceState(bundle);
|
|
}
|
|
|
|
public static void start(Context context, int i) {
|
|
ARouter.b().a("/account/login").a((Activity) context, i);
|
|
}
|
|
|
|
@Override // com.ubt.jimu.user.contract.LoginContract$View
|
|
public void b(User user) {
|
|
String str;
|
|
hideLoading();
|
|
String trim = this.phoneEditText.getText().toString().trim();
|
|
String trim2 = this.countryCodeTextView.getText().toString().trim();
|
|
String str2 = "";
|
|
if (trim.contains("@")) {
|
|
str = "1";
|
|
} else {
|
|
str2 = trim2.substring(trim2.indexOf("+") + 1, trim2.indexOf("(") - 1).replace(" ", "");
|
|
str = "0";
|
|
}
|
|
Bundle bundle = new Bundle();
|
|
bundle.putString("account", str2 + trim);
|
|
bundle.putString("account_type", str);
|
|
bundle.putSerializable("user", user);
|
|
Postcard a = ARouter.b().a("/account/captcha");
|
|
a.a("extra", bundle);
|
|
a.a(this, 19);
|
|
}
|
|
|
|
@Override // com.ubt.jimu.user.contract.LoginContract$View
|
|
public void c(User user) {
|
|
hideLoading();
|
|
g(user);
|
|
}
|
|
|
|
@Override // com.ubtech.view.BaseView
|
|
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
|
public void setPresenter(LoginContract$Presenter loginContract$Presenter) {
|
|
this.a = loginContract$Presenter;
|
|
}
|
|
|
|
@Override // com.ubt.jimu.user.contract.LoginContract$View
|
|
public void c(String str) {
|
|
this.countryCodeTextView.setText(str.substring(str.indexOf("+")) + " (" + str.substring(0, str.indexOf("+")) + ") ");
|
|
}
|
|
}
|