|
@ -2,6 +2,7 @@ package com.gmeremit.online.gmeremittance_native.recipientV3.view.recipientadded |
|
|
|
|
|
|
|
|
import android.os.Bundle; |
|
|
import android.os.Bundle; |
|
|
import android.view.View; |
|
|
import android.view.View; |
|
|
|
|
|
import android.widget.LinearLayout; |
|
|
|
|
|
|
|
|
import com.gmeremit.online.gmeremittance_native.R; |
|
|
import com.gmeremit.online.gmeremittance_native.R; |
|
|
import com.gmeremit.online.gmeremittance_native.base.BaseActivity; |
|
|
import com.gmeremit.online.gmeremittance_native.base.BaseActivity; |
|
@ -25,11 +26,10 @@ import static android.view.View.GONE; |
|
|
|
|
|
|
|
|
public class RecipientAddEditV3Activity extends BaseActivity implements RecipientAddV3ContractInterface, View.OnClickListener { |
|
|
public class RecipientAddEditV3Activity extends BaseActivity implements RecipientAddV3ContractInterface, View.OnClickListener { |
|
|
|
|
|
|
|
|
@BindView(R.id.recieverNameFormInputField) |
|
|
|
|
|
GMEFormInputField recieverNameFormInputField; |
|
|
|
|
|
|
|
|
|
|
|
@BindView(R.id.recieverAddressFormInputField) |
|
|
|
|
|
GMEFormInputField recieverAddressFormInputField; |
|
|
|
|
|
|
|
|
@BindView(R.id.receiverFromViewContainer) |
|
|
|
|
|
LinearLayout receiverFormViewContainer; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@BindView(R.id.recieverCountryViewContainer) |
|
|
@BindView(R.id.recieverCountryViewContainer) |
|
|
View recieverCountryViewContainer; |
|
|
View recieverCountryViewContainer; |
|
@ -43,16 +43,114 @@ public class RecipientAddEditV3Activity extends BaseActivity implements Recipien |
|
|
@BindView(R.id.recieverPaymentMethodSelectionFormInputField) |
|
|
@BindView(R.id.recieverPaymentMethodSelectionFormInputField) |
|
|
GMEFormInputField recieverPaymentMethodSelectionFormInputField; |
|
|
GMEFormInputField recieverPaymentMethodSelectionFormInputField; |
|
|
|
|
|
|
|
|
|
|
|
@BindView(R.id.receiverBankViewContainer) |
|
|
|
|
|
View receiverBankViewContainer; |
|
|
|
|
|
|
|
|
|
|
|
@BindView(R.id.recieverBankSelectionFormInputField) |
|
|
|
|
|
GMEFormInputField recieverBankSelectionFormInputField; |
|
|
|
|
|
|
|
|
|
|
|
@BindView(R.id.receiverBranchViewContainer) |
|
|
|
|
|
View receiverBranchViewContainer; |
|
|
|
|
|
|
|
|
|
|
|
@BindView(R.id.recieverBranchSelectionFormInputField) |
|
|
|
|
|
GMEFormInputField recieverBranchSelectionFormInputField; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@BindView(R.id.recieverAccountNoFormInputField) |
|
|
|
|
|
GMEFormInputField recieverAccountNoFormInputField; |
|
|
|
|
|
|
|
|
|
|
|
@BindView(R.id.recieverFirstNameFormInputField) |
|
|
|
|
|
GMEFormInputField recieverFirstNameFormInputField; |
|
|
|
|
|
|
|
|
|
|
|
@BindView(R.id.recieverMiddleNameFormInputField) |
|
|
|
|
|
GMEFormInputField recieverMiddleNameFormInputField; |
|
|
|
|
|
|
|
|
|
|
|
@BindView(R.id.recieverLastNameFormInputField) |
|
|
|
|
|
GMEFormInputField recieverLastNameFormInputField; |
|
|
|
|
|
|
|
|
|
|
|
@BindView(R.id.recieverFirstNameLocalFormInputField) |
|
|
|
|
|
GMEFormInputField recieverFirstNameLocalFormInputField; |
|
|
|
|
|
|
|
|
|
|
|
@BindView(R.id.recieverMiddleNameLocalFormInputField) |
|
|
|
|
|
GMEFormInputField recieverMiddleNameLocalFormInputField; |
|
|
|
|
|
|
|
|
|
|
|
@BindView(R.id.recieverLastNameLocalFormInputField) |
|
|
|
|
|
GMEFormInputField recieverLastNameLocalFormInputField; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@BindView(R.id.recieverLocalNameFormInputField) |
|
|
|
|
|
GMEFormInputField recieverLocalNameFormInputField; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@BindView(R.id.receiverStateViewContainer) |
|
|
|
|
|
View receiverStateViewContainer; |
|
|
|
|
|
|
|
|
|
|
|
@BindView(R.id.recieverStateSelectionFormInputField) |
|
|
|
|
|
GMEFormInputField recieverStateSelectionFormInputField; |
|
|
|
|
|
|
|
|
|
|
|
@BindView(R.id.receiverDistrictViewContainer) |
|
|
|
|
|
View receiverDistrictViewContainer; |
|
|
|
|
|
|
|
|
|
|
|
@BindView(R.id.recieverDistrictSelectionFormInputField) |
|
|
|
|
|
GMEFormInputField recieverDistrictSelectionFormInputField; |
|
|
|
|
|
|
|
|
|
|
|
@BindView(R.id.recieverCityFormInputField) |
|
|
|
|
|
GMEFormInputField recieverCityFormInputField; |
|
|
|
|
|
|
|
|
|
|
|
@BindView(R.id.recieverAddressFormInputField) |
|
|
|
|
|
GMEFormInputField recieverAddressFormInputField; |
|
|
|
|
|
|
|
|
|
|
|
@BindView(R.id.receiverRelationViewContainer) |
|
|
|
|
|
View receiverRelationViewContainer; |
|
|
|
|
|
|
|
|
|
|
|
@BindView(R.id.recieverRelationSelectionFormInputField) |
|
|
|
|
|
GMEFormInputField recieverRelationSelectionFormInputField; |
|
|
|
|
|
|
|
|
|
|
|
@BindView(R.id.recieverMobileNoFormInputField) |
|
|
|
|
|
GMEFormInputField recieverMobileNoFormInputField; |
|
|
|
|
|
|
|
|
|
|
|
@BindView(R.id.recieverEmailFormInputField) |
|
|
|
|
|
GMEFormInputField recieverEmailFormInputField; |
|
|
|
|
|
|
|
|
|
|
|
@BindView(R.id.receiverTransferReasonViewContainer) |
|
|
|
|
|
View receiverTransferReasonViewContainer; |
|
|
|
|
|
|
|
|
|
|
|
@BindView(R.id.recieverTransferReasonSelectionFormInputField) |
|
|
|
|
|
GMEFormInputField recieverTransferReasonSelectionFormInputField; |
|
|
|
|
|
|
|
|
|
|
|
@BindView(R.id.receiverIDTypeViewContainer) |
|
|
|
|
|
View receiverIDTypeViewContainer; |
|
|
|
|
|
|
|
|
|
|
|
@BindView(R.id.recieverIDTypeSelectionFormInputField) |
|
|
|
|
|
GMEFormInputField recieverIDTypeSelectionFormInputField; |
|
|
|
|
|
|
|
|
|
|
|
@BindView(R.id.recieverIdNumberFormInputField) |
|
|
|
|
|
GMEFormInputField recieverIdNumberFormInputField; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GenericTextListingDialog<CountryServiceModel> countryListingDialog; |
|
|
GenericTextListingDialog<CountryServiceModel> countryListingDialog; |
|
|
GenericTextListingDialog<ServiceTypeModel> serviceMethodListingDialog; |
|
|
GenericTextListingDialog<ServiceTypeModel> serviceMethodListingDialog; |
|
|
|
|
|
|
|
|
RecipientNameTextWatcher recieverNameTextWatcher; |
|
|
|
|
|
|
|
|
|
|
|
public static String RECIPIENT_INFO_BUNDLE_KEY = "recipientInfoKey"; |
|
|
public static String RECIPIENT_INFO_BUNDLE_KEY = "recipientInfoKey"; |
|
|
|
|
|
|
|
|
private RecipientPresenterInterface presenter; |
|
|
private RecipientPresenterInterface presenter; |
|
|
|
|
|
|
|
|
|
|
|
private RecipientLocalNameTextWatcher recieverNameTextWatcher; |
|
|
|
|
|
private RecipientAccountNoTextWatcher recieverAccountNoTextWatcher; |
|
|
|
|
|
private RecipientFirstNameTextWatcher recieverFirstNameTextWatcher; |
|
|
|
|
|
private RecipientMiddleNameTextWatcher recieverMiddleNameTextWatcher; |
|
|
|
|
|
private RecipientLastNameTextWatcher recieverLastNameTextWatcher; |
|
|
|
|
|
private RecipientFirstNameLocalTextWatcher recieverFirstNameLocalTextWatcher; |
|
|
|
|
|
private RecipientMiddleNameLocalTextWatcher recieverMiddleNameLocalTextWatcher; |
|
|
|
|
|
private RecipientLastNameLocalTextWatcher recieverLastNameLocalTextWatcher; |
|
|
|
|
|
private RecipientLocalNameTextWatcher recieverLocalNameTextWatcher; |
|
|
|
|
|
private RecipientCityTextWatcher recieverCityTextWatcher; |
|
|
|
|
|
private RecipientAddressTextWatcher recieverAddressTextWatcher; |
|
|
|
|
|
private RecipientMobileNumberTextWatcher recieverMobileNoTextWatcher; |
|
|
|
|
|
private RecipientEmailTextWatcher recieverEmailTextWatcher; |
|
|
|
|
|
private RecipientIdNumberTextWatcher recieverIdNumberTextWatcher; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
protected void onCreate(Bundle savedInstanceState) { |
|
|
protected void onCreate(Bundle savedInstanceState) { |
|
@ -78,14 +176,55 @@ public class RecipientAddEditV3Activity extends BaseActivity implements Recipien |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private void initTextWatchers() { |
|
|
private void initTextWatchers() { |
|
|
recieverNameTextWatcher = new RecipientNameTextWatcher(); |
|
|
|
|
|
|
|
|
recieverNameTextWatcher = new RecipientLocalNameTextWatcher(); |
|
|
|
|
|
recieverAccountNoTextWatcher= new RecipientAccountNoTextWatcher(); |
|
|
|
|
|
recieverFirstNameTextWatcher= new RecipientFirstNameTextWatcher(); |
|
|
|
|
|
recieverMiddleNameTextWatcher= new RecipientMiddleNameTextWatcher(); |
|
|
|
|
|
recieverLastNameTextWatcher= new RecipientLastNameTextWatcher(); |
|
|
|
|
|
recieverFirstNameLocalTextWatcher= new RecipientFirstNameLocalTextWatcher(); |
|
|
|
|
|
recieverMiddleNameLocalTextWatcher= new RecipientMiddleNameLocalTextWatcher(); |
|
|
|
|
|
recieverLastNameLocalTextWatcher= new RecipientLastNameLocalTextWatcher(); |
|
|
|
|
|
recieverLocalNameTextWatcher= new RecipientLocalNameTextWatcher(); |
|
|
|
|
|
recieverCityTextWatcher= new RecipientCityTextWatcher(); |
|
|
|
|
|
recieverAddressTextWatcher= new RecipientAddressTextWatcher(); |
|
|
|
|
|
recieverMobileNoTextWatcher= new RecipientMobileNumberTextWatcher(); |
|
|
|
|
|
recieverEmailTextWatcher= new RecipientEmailTextWatcher(); |
|
|
|
|
|
recieverIdNumberTextWatcher= new RecipientIdNumberTextWatcher(); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private void registerTextWatchers(boolean action) { |
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public void registerTextWatchers(boolean action) { |
|
|
if (action) { |
|
|
if (action) { |
|
|
recieverNameFormInputField.addTextWatchers(recieverNameTextWatcher); |
|
|
|
|
|
|
|
|
recieverLocalNameFormInputField.addTextWatchers(recieverNameTextWatcher); |
|
|
|
|
|
recieverAccountNoFormInputField.addTextWatchers(recieverAccountNoTextWatcher); |
|
|
|
|
|
recieverFirstNameFormInputField.addTextWatchers(recieverFirstNameTextWatcher); |
|
|
|
|
|
recieverMiddleNameFormInputField.addTextWatchers(recieverMiddleNameTextWatcher); |
|
|
|
|
|
recieverLastNameFormInputField.addTextWatchers(recieverLastNameTextWatcher); |
|
|
|
|
|
recieverFirstNameLocalFormInputField.addTextWatchers(recieverFirstNameLocalTextWatcher); |
|
|
|
|
|
recieverMiddleNameLocalFormInputField.addTextWatchers(recieverMiddleNameLocalTextWatcher); |
|
|
|
|
|
recieverLastNameLocalFormInputField.addTextWatchers(recieverLastNameLocalTextWatcher); |
|
|
|
|
|
recieverLocalNameFormInputField.addTextWatchers(recieverLocalNameTextWatcher); |
|
|
|
|
|
recieverCityFormInputField.addTextWatchers(recieverCityTextWatcher); |
|
|
|
|
|
recieverAddressFormInputField.addTextWatchers(recieverAddressTextWatcher); |
|
|
|
|
|
recieverMobileNoFormInputField.addTextWatchers(recieverMobileNoTextWatcher); |
|
|
|
|
|
recieverEmailFormInputField.addTextWatchers(recieverEmailTextWatcher); |
|
|
|
|
|
recieverIdNumberFormInputField.addTextWatchers(recieverIdNumberTextWatcher); |
|
|
} else { |
|
|
} else { |
|
|
recieverNameFormInputField.removeTextWatchers(recieverNameTextWatcher); |
|
|
|
|
|
|
|
|
recieverLocalNameFormInputField.removeTextWatchers(recieverNameTextWatcher); |
|
|
|
|
|
recieverAccountNoFormInputField.removeTextWatchers(recieverAccountNoTextWatcher); |
|
|
|
|
|
recieverFirstNameFormInputField.removeTextWatchers(recieverFirstNameTextWatcher); |
|
|
|
|
|
recieverMiddleNameFormInputField.removeTextWatchers(recieverMiddleNameTextWatcher); |
|
|
|
|
|
recieverLastNameFormInputField.removeTextWatchers(recieverLastNameTextWatcher); |
|
|
|
|
|
recieverFirstNameLocalFormInputField.removeTextWatchers(recieverFirstNameLocalTextWatcher); |
|
|
|
|
|
recieverMiddleNameLocalFormInputField.removeTextWatchers(recieverMiddleNameLocalTextWatcher); |
|
|
|
|
|
recieverLastNameLocalFormInputField.removeTextWatchers(recieverLastNameLocalTextWatcher); |
|
|
|
|
|
recieverLocalNameFormInputField.removeTextWatchers(recieverLocalNameTextWatcher); |
|
|
|
|
|
recieverCityFormInputField.removeTextWatchers(recieverCityTextWatcher); |
|
|
|
|
|
recieverAddressFormInputField.removeTextWatchers(recieverAddressTextWatcher); |
|
|
|
|
|
recieverMobileNoFormInputField.removeTextWatchers(recieverMobileNoTextWatcher); |
|
|
|
|
|
recieverEmailFormInputField.removeTextWatchers(recieverEmailTextWatcher); |
|
|
|
|
|
recieverIdNumberFormInputField.removeTextWatchers(recieverIdNumberTextWatcher); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
private void registerClickListener(boolean action) { |
|
|
private void registerClickListener(boolean action) { |
|
@ -93,18 +232,31 @@ public class RecipientAddEditV3Activity extends BaseActivity implements Recipien |
|
|
{ |
|
|
{ |
|
|
recieverCountrySelectionFormInputField.getEditTextView().setOnClickListener(new CountrySelectionClickListener()); |
|
|
recieverCountrySelectionFormInputField.getEditTextView().setOnClickListener(new CountrySelectionClickListener()); |
|
|
recieverPaymentMethodSelectionFormInputField.getEditTextView().setOnClickListener(new PaymentMethodSelectionClickListener()); |
|
|
recieverPaymentMethodSelectionFormInputField.getEditTextView().setOnClickListener(new PaymentMethodSelectionClickListener()); |
|
|
|
|
|
recieverBankSelectionFormInputField.getEditTextView().setOnClickListener(new BankSelectionClickListener()); |
|
|
|
|
|
recieverBranchSelectionFormInputField.getEditTextView().setOnClickListener(new BranchSelectionClickListener()); |
|
|
|
|
|
recieverStateSelectionFormInputField.getEditTextView().setOnClickListener(new StateSelectionClickListener()); |
|
|
|
|
|
recieverDistrictSelectionFormInputField.getEditTextView().setOnClickListener(new DistrictSelectionClickListener()); |
|
|
|
|
|
recieverRelationSelectionFormInputField.getEditTextView().setOnClickListener(new RelationSelectionClickListener()); |
|
|
|
|
|
recieverTransferReasonSelectionFormInputField.getEditTextView().setOnClickListener(new TransferReasonSelectionClickListener()); |
|
|
|
|
|
recieverIDTypeSelectionFormInputField.getEditTextView().setOnClickListener(new IDTypeSelectionClickListener()); |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
recieverCountrySelectionFormInputField.getEditTextView().setOnClickListener(null); |
|
|
recieverCountrySelectionFormInputField.getEditTextView().setOnClickListener(null); |
|
|
recieverPaymentMethodSelectionFormInputField.getEditTextView().setOnClickListener(null); |
|
|
recieverPaymentMethodSelectionFormInputField.getEditTextView().setOnClickListener(null); |
|
|
|
|
|
recieverBankSelectionFormInputField.getEditTextView().setOnClickListener(null); |
|
|
|
|
|
recieverBranchSelectionFormInputField.getEditTextView().setOnClickListener(null); |
|
|
|
|
|
recieverStateSelectionFormInputField.getEditTextView().setOnClickListener(null); |
|
|
|
|
|
recieverDistrictSelectionFormInputField.getEditTextView().setOnClickListener(null); |
|
|
|
|
|
recieverRelationSelectionFormInputField.getEditTextView().setOnClickListener(null); |
|
|
|
|
|
recieverTransferReasonSelectionFormInputField.getEditTextView().setOnClickListener(null); |
|
|
|
|
|
recieverIDTypeSelectionFormInputField.getEditTextView().setOnClickListener(null); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
protected void onStart() { |
|
|
protected void onStart() { |
|
|
super.onStart(); |
|
|
super.onStart(); |
|
|
registerTextWatchers(true); |
|
|
|
|
|
registerClickListener(true); |
|
|
registerClickListener(true); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -113,7 +265,6 @@ public class RecipientAddEditV3Activity extends BaseActivity implements Recipien |
|
|
@Override |
|
|
@Override |
|
|
protected void onStop() { |
|
|
protected void onStop() { |
|
|
super.onStop(); |
|
|
super.onStop(); |
|
|
registerTextWatchers(false); |
|
|
|
|
|
registerClickListener(false); |
|
|
registerClickListener(false); |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -121,23 +272,23 @@ public class RecipientAddEditV3Activity extends BaseActivity implements Recipien |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public void updateValidationRuleToWidgetFullName(boolean showWidget, boolean shouldAllowSpecialCharacters, int maxLength) { |
|
|
public void updateValidationRuleToWidgetFullName(boolean showWidget, boolean shouldAllowSpecialCharacters, int maxLength) { |
|
|
recieverNameFormInputField.setInputFilters(InputFilterFactory.getRequiredInputFilters(shouldAllowSpecialCharacters, maxLength)); |
|
|
|
|
|
|
|
|
recieverLocalNameFormInputField.setInputFilters(InputFilterFactory.getRequiredInputFilters(shouldAllowSpecialCharacters, maxLength)); |
|
|
if (showWidget) { |
|
|
if (showWidget) { |
|
|
recieverNameFormInputField.setVisibility(View.VISIBLE); |
|
|
|
|
|
|
|
|
recieverLocalNameFormInputField.setVisibility(View.VISIBLE); |
|
|
} else |
|
|
} else |
|
|
recieverNameFormInputField.setVisibility(GONE); |
|
|
|
|
|
|
|
|
recieverLocalNameFormInputField.setVisibility(GONE); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public void updateValueToWidgetFullName(String name) { |
|
|
public void updateValueToWidgetFullName(String name) { |
|
|
recieverNameFormInputField.removeTextWatchers(recieverNameTextWatcher); |
|
|
|
|
|
recieverNameFormInputField.getEditTextView().setText(name); |
|
|
|
|
|
recieverNameFormInputField.addTextWatchers(recieverNameTextWatcher); |
|
|
|
|
|
|
|
|
recieverLocalNameFormInputField.removeTextWatchers(recieverNameTextWatcher); |
|
|
|
|
|
recieverLocalNameFormInputField.getEditTextView().setText(name); |
|
|
|
|
|
recieverLocalNameFormInputField.addTextWatchers(recieverNameTextWatcher); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public void setErrorOnWidgetFullName(String error) { |
|
|
public void setErrorOnWidgetFullName(String error) { |
|
|
recieverNameFormInputField.updateErrorSafely(error); |
|
|
|
|
|
|
|
|
recieverLocalNameFormInputField.updateErrorSafely(error); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -171,7 +322,23 @@ public class RecipientAddEditV3Activity extends BaseActivity implements Recipien |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public void hideAllViewExceptCountry() { |
|
|
public void hideAllViewExceptCountry() { |
|
|
|
|
|
hideViewFromIndexId(2); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public void hideAllFormInputFields() { |
|
|
|
|
|
hideViewFromIndexId(1); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void hideViewFromIndexId(int indexId) |
|
|
|
|
|
{ |
|
|
|
|
|
if(indexId<0) |
|
|
|
|
|
return; |
|
|
|
|
|
for(int i = indexId; i< receiverFormViewContainer.getChildCount(); i++) |
|
|
|
|
|
{ |
|
|
|
|
|
receiverFormViewContainer.getChildAt(i).setVisibility(GONE); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
@ -227,10 +394,206 @@ public class RecipientAddEditV3Activity extends BaseActivity implements Recipien |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public class RecipientNameTextWatcher extends TextWatcherAdapter { |
|
|
|
|
|
|
|
|
public class BankSelectionClickListener implements View.OnClickListener |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public void onClick(View v) { |
|
|
|
|
|
hideKeyBoard(); |
|
|
|
|
|
// if (serviceMethodListingDialog == null) |
|
|
|
|
|
// serviceMethodListingDialog = new GenericTextListingDialog<>(); |
|
|
|
|
|
// serviceMethodListingDialog.setData(presenter.getAvailableServiceMethodList()); |
|
|
|
|
|
// serviceMethodListingDialog.setListener(selectedPaymentMethod -> |
|
|
|
|
|
// { |
|
|
|
|
|
// presenter.onServiceTypeSelected(selectedPaymentMethod); |
|
|
|
|
|
// serviceMethodListingDialog.dismiss(); |
|
|
|
|
|
// }); |
|
|
|
|
|
// serviceMethodListingDialog.setHintAndTitle("Search payment method", "Select payment method", "No payment method found."); |
|
|
|
|
|
// serviceMethodListingDialog.disableSearch(false); |
|
|
|
|
|
// if (!serviceMethodListingDialog.isAdded()) |
|
|
|
|
|
// serviceMethodListingDialog.show(getSupportFragmentManager(), "PaymentMethodListingDialog"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public class BranchSelectionClickListener implements View.OnClickListener |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public void onClick(View v) { |
|
|
|
|
|
hideKeyBoard(); |
|
|
|
|
|
// if (serviceMethodListingDialog == null) |
|
|
|
|
|
// serviceMethodListingDialog = new GenericTextListingDialog<>(); |
|
|
|
|
|
// serviceMethodListingDialog.setData(presenter.getAvailableServiceMethodList()); |
|
|
|
|
|
// serviceMethodListingDialog.setListener(selectedPaymentMethod -> |
|
|
|
|
|
// { |
|
|
|
|
|
// presenter.onServiceTypeSelected(selectedPaymentMethod); |
|
|
|
|
|
// serviceMethodListingDialog.dismiss(); |
|
|
|
|
|
// }); |
|
|
|
|
|
// serviceMethodListingDialog.setHintAndTitle("Search payment method", "Select payment method", "No payment method found."); |
|
|
|
|
|
// serviceMethodListingDialog.disableSearch(false); |
|
|
|
|
|
// if (!serviceMethodListingDialog.isAdded()) |
|
|
|
|
|
// serviceMethodListingDialog.show(getSupportFragmentManager(), "PaymentMethodListingDialog"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public class StateSelectionClickListener implements View.OnClickListener |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public void onClick(View v) { |
|
|
|
|
|
hideKeyBoard(); |
|
|
|
|
|
// if (serviceMethodListingDialog == null) |
|
|
|
|
|
// serviceMethodListingDialog = new GenericTextListingDialog<>(); |
|
|
|
|
|
// serviceMethodListingDialog.setData(presenter.getAvailableServiceMethodList()); |
|
|
|
|
|
// serviceMethodListingDialog.setListener(selectedPaymentMethod -> |
|
|
|
|
|
// { |
|
|
|
|
|
// presenter.onServiceTypeSelected(selectedPaymentMethod); |
|
|
|
|
|
// serviceMethodListingDialog.dismiss(); |
|
|
|
|
|
// }); |
|
|
|
|
|
// serviceMethodListingDialog.setHintAndTitle("Search payment method", "Select payment method", "No payment method found."); |
|
|
|
|
|
// serviceMethodListingDialog.disableSearch(false); |
|
|
|
|
|
// if (!serviceMethodListingDialog.isAdded()) |
|
|
|
|
|
// serviceMethodListingDialog.show(getSupportFragmentManager(), "PaymentMethodListingDialog"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
public class DistrictSelectionClickListener implements View.OnClickListener |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public void onClick(View v) { |
|
|
|
|
|
hideKeyBoard(); |
|
|
|
|
|
// if (serviceMethodListingDialog == null) |
|
|
|
|
|
// serviceMethodListingDialog = new GenericTextListingDialog<>(); |
|
|
|
|
|
// serviceMethodListingDialog.setData(presenter.getAvailableServiceMethodList()); |
|
|
|
|
|
// serviceMethodListingDialog.setListener(selectedPaymentMethod -> |
|
|
|
|
|
// { |
|
|
|
|
|
// presenter.onServiceTypeSelected(selectedPaymentMethod); |
|
|
|
|
|
// serviceMethodListingDialog.dismiss(); |
|
|
|
|
|
// }); |
|
|
|
|
|
// serviceMethodListingDialog.setHintAndTitle("Search payment method", "Select payment method", "No payment method found."); |
|
|
|
|
|
// serviceMethodListingDialog.disableSearch(false); |
|
|
|
|
|
// if (!serviceMethodListingDialog.isAdded()) |
|
|
|
|
|
// serviceMethodListingDialog.show(getSupportFragmentManager(), "PaymentMethodListingDialog"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public class RelationSelectionClickListener implements View.OnClickListener |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public void onClick(View v) { |
|
|
|
|
|
hideKeyBoard(); |
|
|
|
|
|
// if (serviceMethodListingDialog == null) |
|
|
|
|
|
// serviceMethodListingDialog = new GenericTextListingDialog<>(); |
|
|
|
|
|
// serviceMethodListingDialog.setData(presenter.getAvailableServiceMethodList()); |
|
|
|
|
|
// serviceMethodListingDialog.setListener(selectedPaymentMethod -> |
|
|
|
|
|
// { |
|
|
|
|
|
// presenter.onServiceTypeSelected(selectedPaymentMethod); |
|
|
|
|
|
// serviceMethodListingDialog.dismiss(); |
|
|
|
|
|
// }); |
|
|
|
|
|
// serviceMethodListingDialog.setHintAndTitle("Search payment method", "Select payment method", "No payment method found."); |
|
|
|
|
|
// serviceMethodListingDialog.disableSearch(false); |
|
|
|
|
|
// if (!serviceMethodListingDialog.isAdded()) |
|
|
|
|
|
// serviceMethodListingDialog.show(getSupportFragmentManager(), "PaymentMethodListingDialog"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public class TransferReasonSelectionClickListener implements View.OnClickListener |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public void onClick(View v) { |
|
|
|
|
|
hideKeyBoard(); |
|
|
|
|
|
// if (serviceMethodListingDialog == null) |
|
|
|
|
|
// serviceMethodListingDialog = new GenericTextListingDialog<>(); |
|
|
|
|
|
// serviceMethodListingDialog.setData(presenter.getAvailableServiceMethodList()); |
|
|
|
|
|
// serviceMethodListingDialog.setListener(selectedPaymentMethod -> |
|
|
|
|
|
// { |
|
|
|
|
|
// presenter.onServiceTypeSelected(selectedPaymentMethod); |
|
|
|
|
|
// serviceMethodListingDialog.dismiss(); |
|
|
|
|
|
// }); |
|
|
|
|
|
// serviceMethodListingDialog.setHintAndTitle("Search payment method", "Select payment method", "No payment method found."); |
|
|
|
|
|
// serviceMethodListingDialog.disableSearch(false); |
|
|
|
|
|
// if (!serviceMethodListingDialog.isAdded()) |
|
|
|
|
|
// serviceMethodListingDialog.show(getSupportFragmentManager(), "PaymentMethodListingDialog"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public class IDTypeSelectionClickListener implements View.OnClickListener |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public void onClick(View v) { |
|
|
|
|
|
hideKeyBoard(); |
|
|
|
|
|
// if (serviceMethodListingDialog == null) |
|
|
|
|
|
// serviceMethodListingDialog = new GenericTextListingDialog<>(); |
|
|
|
|
|
// serviceMethodListingDialog.setData(presenter.getAvailableServiceMethodList()); |
|
|
|
|
|
// serviceMethodListingDialog.setListener(selectedPaymentMethod -> |
|
|
|
|
|
// { |
|
|
|
|
|
// presenter.onServiceTypeSelected(selectedPaymentMethod); |
|
|
|
|
|
// serviceMethodListingDialog.dismiss(); |
|
|
|
|
|
// }); |
|
|
|
|
|
// serviceMethodListingDialog.setHintAndTitle("Search payment method", "Select payment method", "No payment method found."); |
|
|
|
|
|
// serviceMethodListingDialog.disableSearch(false); |
|
|
|
|
|
// if (!serviceMethodListingDialog.isAdded()) |
|
|
|
|
|
// serviceMethodListingDialog.show(getSupportFragmentManager(), "PaymentMethodListingDialog"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class RecipientAccountNoTextWatcher extends TextWatcherAdapter { |
|
|
|
|
|
@Override |
|
|
|
|
|
public void onTextUpdated(String text) { |
|
|
|
|
|
presenter.onRecipientAccountNoChanged(text); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public class RecipientFirstNameTextWatcher extends TextWatcherAdapter { |
|
|
|
|
|
@Override |
|
|
|
|
|
public void onTextUpdated(String text) { |
|
|
|
|
|
presenter.onRecipientFirstNameChanged(text); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public class RecipientMiddleNameTextWatcher extends TextWatcherAdapter { |
|
|
@Override |
|
|
@Override |
|
|
public void onTextUpdated(String text) { |
|
|
public void onTextUpdated(String text) { |
|
|
presenter.onRecipientNameChanged(text); |
|
|
|
|
|
|
|
|
presenter.onRecipientMiddleNameChanged(text); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public class RecipientLastNameTextWatcher extends TextWatcherAdapter { |
|
|
|
|
|
@Override |
|
|
|
|
|
public void onTextUpdated(String text) { |
|
|
|
|
|
presenter.onRecipientLastNameChanged(text); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public class RecipientFirstNameLocalTextWatcher extends TextWatcherAdapter { |
|
|
|
|
|
@Override |
|
|
|
|
|
public void onTextUpdated(String text) { |
|
|
|
|
|
presenter.onRecipientFirstNameLocalChanged(text); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public class RecipientMiddleNameLocalTextWatcher extends TextWatcherAdapter { |
|
|
|
|
|
@Override |
|
|
|
|
|
public void onTextUpdated(String text) { |
|
|
|
|
|
presenter.onRecipientMiddleNameLocalChanged(text); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public class RecipientLastNameLocalTextWatcher extends TextWatcherAdapter { |
|
|
|
|
|
@Override |
|
|
|
|
|
public void onTextUpdated(String text) { |
|
|
|
|
|
presenter.onRecipientLastNameLocalChanged(text); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public class RecipientCityTextWatcher extends TextWatcherAdapter { |
|
|
|
|
|
@Override |
|
|
|
|
|
public void onTextUpdated(String text) { |
|
|
|
|
|
presenter.onRecipientCityChanged(text); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -238,7 +601,38 @@ public class RecipientAddEditV3Activity extends BaseActivity implements Recipien |
|
|
public class RecipientAddressTextWatcher extends TextWatcherAdapter { |
|
|
public class RecipientAddressTextWatcher extends TextWatcherAdapter { |
|
|
@Override |
|
|
@Override |
|
|
public void onTextUpdated(String text) { |
|
|
public void onTextUpdated(String text) { |
|
|
|
|
|
presenter.onRecipientAddressChanged(text); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public class RecipientMobileNumberTextWatcher extends TextWatcherAdapter { |
|
|
|
|
|
@Override |
|
|
|
|
|
public void onTextUpdated(String text) { |
|
|
|
|
|
presenter.onRecipientMobileNumberChanged(text); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public class RecipientEmailTextWatcher extends TextWatcherAdapter { |
|
|
|
|
|
@Override |
|
|
|
|
|
public void onTextUpdated(String text) { |
|
|
|
|
|
presenter.onRecipientEmailChanged(text); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public class RecipientIdNumberTextWatcher extends TextWatcherAdapter { |
|
|
|
|
|
@Override |
|
|
|
|
|
public void onTextUpdated(String text) { |
|
|
|
|
|
presenter.onRecipientIdNumberChanged(text); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public class RecipientLocalNameTextWatcher extends TextWatcherAdapter { |
|
|
|
|
|
@Override |
|
|
|
|
|
public void onTextUpdated(String text) { |
|
|
|
|
|
presenter.onRecipientLocalNameChanged(text); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |