-
-
Notifications
You must be signed in to change notification settings - Fork 45
CCCT-890 #3005
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CCCT-890 #3005
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -265,21 +265,14 @@ public void checkPhoneNumber() { | |
| String finalPhone = phone; | ||
| switch (callingClass) { | ||
| case ConnectConstants.CONNECT_REGISTRATION_PRIMARY_PHONE, | ||
| ConnectConstants.CONNECT_REGISTRATION_CHANGE_PRIMARY_PHONE, | ||
| ConnectConstants.CONNECT_RECOVERY_PRIMARY_PHONE -> { | ||
| if (existingPrimary != null && existingPrimary.equals(phone)) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what are we trying to solve here ? And why is primary check not required any more ?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because it was a issue we are getting existing no when we are changing the method from signup to recover we pass the no entered there so this condition willl never allow user to check phone no |
||
| binding.errorTextView.setVisibility(View.GONE); | ||
| binding.errorTextView.setText(""); | ||
| } else if (existingAlternate != null && existingAlternate.equals(phone)) { | ||
| binding.errorTextView.setVisibility(View.VISIBLE); | ||
| ConnectConstants.CONNECT_REGISTRATION_CHANGE_PRIMARY_PHONE, | ||
| ConnectConstants.CONNECT_RECOVERY_PRIMARY_PHONE -> { | ||
| binding.errorTextView.setVisibility(View.VISIBLE); | ||
| if (existingAlternate != null && existingAlternate.equals(phone)) { | ||
| binding.errorTextView.setText(getString(R.string.connect_phone_not_alt)); | ||
| } else { | ||
| //Make sure the number isn't already in use | ||
| // phone = phone.replaceAll("\\+", "%2b"); | ||
| binding.errorTextView.setVisibility(View.VISIBLE); | ||
| binding.errorTextView.setText(getString(R.string.connect_phone_checking)); | ||
|
|
||
| ApiConnectId.checkPhoneAvailable(getContext(), phone, | ||
| ApiConnectId.checkPhoneAvailable(getContext(), phone, | ||
| new IApiCallback() { | ||
| @Override | ||
| public void processSuccess(int responseCode, InputStream responseData) { | ||
|
|
@@ -297,7 +290,7 @@ public void processSuccess(int responseCode, InputStream responseData) { | |
| @Override | ||
| public void processFailure(int responseCode, IOException e) { | ||
| skipPhoneNumberCheck = false; | ||
| if(responseCode==406){ | ||
| if (responseCode == 406) { | ||
| skipPhoneNumberCheck = false; | ||
| updateButtonEnabled(); | ||
| binding.errorTextView.setVisibility(View.VISIBLE); | ||
|
|
@@ -336,8 +329,8 @@ public void processOldApiError() { | |
| binding.errorTextView.setText(getString(R.string.recovery_network_outdated)); | ||
| } | ||
| }); | ||
|
|
||
| } | ||
|
|
||
| } | ||
| case ConnectConstants.CONNECT_UNLOCK_ALT_PHONE_CHANGE -> { | ||
| if (existingPrimary != null && existingPrimary.equals(phone)) { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.