Beispiel #1
0
 @Override
 public void onClick(View v) {
   super.onClick(v);
   switch (v.getId()) {
     case R.id.sign_in_button:
       mPresenter.loginPhone(
           mInputPhone.getText().toString(), mInputPassword.getText().toString());
       break;
     case R.id.forget_password:
       Intent intent_forget = new Intent(mContext, ForgetPasswordActivity.class);
       startActivity(intent_forget);
       break;
     case R.id.user_register:
       Intent intent_reg = new Intent(mContext, UserRegisterActivity.class);
       startActivity(intent_reg);
       break;
   }
 }
Beispiel #2
0
 @Override
 protected void onResume() {
   super.onResume();
   mPresenter.start();
 }