lbryio / lbry-android

The LBRY Android app
MIT License
2.44k stars 113 forks source link

Enable phone verification #1168

Closed kekkyojin closed 3 years ago

kekkyojin commented 3 years ago

Show the Close button after phone number has been verified

PR Checklist

Please check all that apply to this PR using "x":

PR Type

What kind of change does this PR introduce?

Fixes

Issue Number: #1085

What is the current behavior?

No way to verify account other than Twitter, Discord chat or paying fee

What is the new behavior?

Now it is also possible to be verified using the user mobile phone number

Other information

This PR adds some strings which should be translated.

Adds a button to the manual verification fragment. When user clicks on it, a new fragment shows, asking user to introduce its phone number. Then a SMS is send to it, which user should introduce inte the fragment. If it matches, the fragment closes. Until #1167 is fixed, the next fragment shown to user is the verification fragment again.

This PR also re-activates the onBackPressed() callback, to allow user to go back when Verifying Phone Number fragment is in the foreground. The cross image will close the full verification fragment. User would prefer to go from one method to another one -from mobile phone to Twitter account, for example-.