bug fixes
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user