mirror of
https://github.com/oxen-io/session-android.git
synced 2023-12-14 02:53:01 +01:00
FREEBIE reuse code
This commit is contained in:
parent
dda8a214a4
commit
c84285c639
1 changed files with 1 additions and 7 deletions
|
@ -107,13 +107,7 @@ public class RegistrationActivity extends SherlockActivity {
|
|||
}
|
||||
|
||||
private void initializeNumber() {
|
||||
String localNumber = ((TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE))
|
||||
.getLine1Number();
|
||||
|
||||
if (!Util.isEmpty(localNumber) && !localNumber.startsWith("+")) {
|
||||
if (localNumber.length() == 10) localNumber = "+1" + localNumber;
|
||||
else localNumber = "+" + localNumber;
|
||||
}
|
||||
String localNumber = org.whispersystems.textsecure.util.Util.getDeviceE164Number(this);
|
||||
|
||||
try {
|
||||
if (!Util.isEmpty(localNumber)) {
|
||||
|
|
Loading…
Reference in a new issue