|
|
@ -117,10 +117,15 @@ public class RecipientAddV2Activity extends BaseActivity implements View.OnClick |
|
|
|
private List<RelationDetailModel> relationList; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private RecipientInfoModel recipientToBeEdited = null; |
|
|
|
private String selectedRecipientId = ""; |
|
|
|
|
|
|
|
private GenericTextListingDialog<TransferDetailModel> transferListingDialog; |
|
|
|
GenericTextListingDialog<RelationDetailModel> relationListingDialog; |
|
|
|
GenericTextListingDialog<DistrictDetailModel> districtListingDialog; |
|
|
|
GenericTextListingDialog<ProvinceDetailModel> provinceListingDialog; |
|
|
|
GenericTextListingDialog<CountryDetailModel> countryListingDialog; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* ed_firstname |
|
|
@ -261,7 +266,8 @@ public class RecipientAddV2Activity extends BaseActivity implements View.OnClick |
|
|
|
|
|
|
|
private void showTransferListingInDialogV2() { |
|
|
|
hideKeyBoard(); |
|
|
|
GenericTextListingDialog<TransferDetailModel> transferListingDialog =new GenericTextListingDialog<>(); |
|
|
|
if (transferListingDialog == null) |
|
|
|
transferListingDialog = new GenericTextListingDialog<>(); |
|
|
|
transferListingDialog.setData(this.transferReasonList); |
|
|
|
transferListingDialog.setListener(transferDetailModel -> |
|
|
|
{ |
|
|
@ -276,11 +282,10 @@ public class RecipientAddV2Activity extends BaseActivity implements View.OnClick |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void showRelationListingInDialogV2() { |
|
|
|
hideKeyBoard(); |
|
|
|
GenericTextListingDialog<RelationDetailModel> relationListingDialog =new GenericTextListingDialog<>(); |
|
|
|
if (relationListingDialog == null) |
|
|
|
relationListingDialog = new GenericTextListingDialog<>(); |
|
|
|
relationListingDialog.setData(this.relationList); |
|
|
|
relationListingDialog.setListener(selectedRelation -> |
|
|
|
{ |
|
|
@ -295,8 +300,6 @@ public class RecipientAddV2Activity extends BaseActivity implements View.OnClick |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void showDistrictListingInDialogV2() { |
|
|
|
|
|
|
|
if (this.selectedProvince == null) { |
|
|
@ -304,7 +307,8 @@ public class RecipientAddV2Activity extends BaseActivity implements View.OnClick |
|
|
|
return; |
|
|
|
} |
|
|
|
hideKeyBoard(); |
|
|
|
GenericTextListingDialog<DistrictDetailModel> districtListingDialog =new GenericTextListingDialog<>(); |
|
|
|
if (districtListingDialog == null) |
|
|
|
districtListingDialog = new GenericTextListingDialog<>(); |
|
|
|
districtListingDialog.setData(this.selectedProvince.getDistrict()); |
|
|
|
districtListingDialog.setListener(districtDetailModel -> |
|
|
|
{ |
|
|
@ -319,7 +323,6 @@ public class RecipientAddV2Activity extends BaseActivity implements View.OnClick |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void showProvinceListingInDialogV2() { |
|
|
|
|
|
|
|
if (this.selectedCountry == null) { |
|
|
@ -327,7 +330,8 @@ public class RecipientAddV2Activity extends BaseActivity implements View.OnClick |
|
|
|
return; |
|
|
|
} |
|
|
|
hideKeyBoard(); |
|
|
|
GenericTextListingDialog<ProvinceDetailModel> provinceListingDialog =new GenericTextListingDialog<>(); |
|
|
|
if (provinceListingDialog == null) |
|
|
|
provinceListingDialog = new GenericTextListingDialog<>(); |
|
|
|
provinceListingDialog.setData(this.selectedCountry.getProvinces()); |
|
|
|
provinceListingDialog.setListener(selectedProvince -> |
|
|
|
{ |
|
|
@ -342,10 +346,10 @@ public class RecipientAddV2Activity extends BaseActivity implements View.OnClick |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void showCountryListingInDialogV2() { |
|
|
|
hideKeyBoard(); |
|
|
|
GenericTextListingDialog<CountryDetailModel> countryListingDialog =new GenericTextListingDialog<>(); |
|
|
|
if (countryListingDialog == null) |
|
|
|
countryListingDialog = new GenericTextListingDialog<>(); |
|
|
|
countryListingDialog.setData(this.countryList); |
|
|
|
countryListingDialog.setListener(countryPaymentService -> |
|
|
|
{ |
|
|
|