|
@@ -191,8 +191,8 @@ public class SendInfoConfirmFragment extends Fragment {
|
|
|
// finalActivity.getBundleMap().put(SendInfoConfirmFragment.class.getName(), bundle);
|
|
|
AlertDialog alertDialog = new AlertDialog.Builder(finalActivity)
|
|
|
.setTitle("e站通")
|
|
|
- .setMessage("确定要取消本次投递吗?")
|
|
|
- .setPositiveButton("是", (dialog, which) -> {
|
|
|
+ .setMessage("点击未投递会取消本次投递!并且取消投递后的订单状态为预下单!确认取消吗?")
|
|
|
+ .setPositiveButton("确认", (dialog, which) -> {
|
|
|
// 是, 取消本次投递
|
|
|
ConfirmOrderVo confirmOrderVo = new ConfirmOrderVo();
|
|
|
confirmOrderVo.setOrderSn(finalOrderSn);
|
|
@@ -219,7 +219,7 @@ public class SendInfoConfirmFragment extends Fragment {
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
- }).setNegativeButton("否", (dialog, which) -> {
|
|
|
+ }).setNegativeButton("取消", (dialog, which) -> {
|
|
|
// 否
|
|
|
dialog.dismiss();
|
|
|
}).create();
|
|
@@ -232,13 +232,17 @@ public class SendInfoConfirmFragment extends Fragment {
|
|
|
}
|
|
|
AlertDialog alertDialog = new AlertDialog.Builder(finalActivity)
|
|
|
.setTitle("e站通")
|
|
|
- .setMessage("返回主页会取消本次投递!确认取消吗?")
|
|
|
- .setPositiveButton("是", ((dialog, which) -> {
|
|
|
+ .setMessage("返回主页会取消本次投递!并且本次投递的订单状态为预下单!确认取消吗?")
|
|
|
+ .setPositiveButton("确认", ((dialog, which) -> {
|
|
|
timer.cancel();
|
|
|
- LocalStorage.getInstance().cleanSession(((MainActivity) getActivity()));
|
|
|
+ boolean isException = false;
|
|
|
+ if (LocalStorage.getInstance().getSession().getException()) {
|
|
|
+ isException = true;
|
|
|
+ }
|
|
|
+ LocalStorage.getInstance().cleanSession(((MainActivity) getActivity()), isException);
|
|
|
NavHostFragment.findNavController(SendInfoConfirmFragment.this)
|
|
|
.navigate(R.id.action_sendInfoConfirmFragment_to_mainFragment);
|
|
|
- })).setNegativeButton("否", ((dialog, which) -> {
|
|
|
+ })).setNegativeButton("取消", ((dialog, which) -> {
|
|
|
dialog.dismiss();
|
|
|
})).create();
|
|
|
alertDialog.show();
|
|
@@ -254,5 +258,6 @@ public class SendInfoConfirmFragment extends Fragment {
|
|
|
}
|
|
|
super.onDestroy();
|
|
|
binding = null;
|
|
|
+ Log.i(TAG, TAG + "被销毁。。。");
|
|
|
}
|
|
|
}
|