bug fixes

This commit is contained in:
cimenmus
2018-08-23 20:14:59 +03:00
parent a69471f798
commit a6982624ba
15 changed files with 442 additions and 204 deletions

View File

@@ -47,10 +47,6 @@ public class ProfileFragment extends BaseFragment {
@BindView(R.id.lastnamePizzalinkInfoLayout) AppInfoView lastnamePizzalinkInfoLayout;
@BindView(R.id.emailPizzalinkInfoLayout) AppInfoView emailPizzalinkInfoLayout;
@BindView(R.id.phonePizzalinkInfoLayout) AppInfoView phonePizzalinkInfoLayout;
@BindView(R.id.myAddressesLayout) RelativeLayout myAddressesLayout;
@BindView(R.id.updateProfileLayout) RelativeLayout updateProfileLayout;
@BindView(R.id.updatePasswordLayout) RelativeLayout updatePasswordLayout;
@BindView(R.id.logoutLayout) RelativeLayout logoutLayout;
@BindString(R.string.bottom_nav_menu_item_profile) String fragmentTitle;
@BindString(R.string.alert_logout) String logoutAlertText;
@@ -81,7 +77,8 @@ public class ProfileFragment extends BaseFragment {
}
@OnClick({R.id.myAddressesLayout, R.id.updatePasswordLayout,
R.id.updateProfileLayout, R.id.logoutLayout})
R.id.updateProfileLayout, R.id.changePostCodeLayout,
R.id.logoutLayout})
public void onClick(View view){
switch (view.getId()){
case R.id.myAddressesLayout:
@@ -95,6 +92,10 @@ public class ProfileFragment extends BaseFragment {
case R.id.updatePasswordLayout:
startActivity(new Intent(BaseActivity.currentActivity, UpdatePasswordActivity.class));
break;
case R.id.changePostCodeLayout:
BaseActivity.currentActivity.startActivity(new Intent(BaseActivity.currentActivity, SplashActivity.class));
BaseActivity.currentActivity.finishAffinity();
break;
case R.id.logoutLayout:
DialogHelper.showTwoButtonsDialog(BaseActivity.currentActivity, logoutAlertText,
new MaterialDialog.SingleButtonCallback() {