Compare commits
2 commits
6f4d032a19
...
a4daf17c56
Author | SHA1 | Date | |
---|---|---|---|
![]() |
a4daf17c56 | ||
![]() |
da489a7f49 |
1 changed files with 3 additions and 7 deletions
|
@ -448,13 +448,9 @@ public class MainActivity extends AppCompatActivity implements PostRequestCallba
|
||||||
|
|
||||||
} else if (result.get("name"). // STATIC
|
} else if (result.get("name"). // STATIC
|
||||||
equals("languages")) { // STATIC
|
equals("languages")) { // STATIC
|
||||||
String currentLanguage = Locale.getDefault().getLanguage();
|
|
||||||
if(!result.getJSONObject("data").has(currentLanguage))
|
|
||||||
currentLanguage = "en";
|
|
||||||
language = result.getJSONObject(
|
language = result.getJSONObject(
|
||||||
"data" // STATIC
|
"data" // STATIC
|
||||||
).getJSONObject(currentLanguage);
|
).getJSONObject(Locale.getDefault().getLanguage());
|
||||||
|
|
||||||
requestsCount += 1;
|
requestsCount += 1;
|
||||||
}
|
}
|
||||||
if (requestsCount == 2) {
|
if (requestsCount == 2) {
|
||||||
|
@ -582,8 +578,8 @@ public class MainActivity extends AppCompatActivity implements PostRequestCallba
|
||||||
phoneNumbers.add(new PhoneNumber(
|
phoneNumbers.add(new PhoneNumber(
|
||||||
phoneNumber,
|
phoneNumber,
|
||||||
telephonyManager,
|
telephonyManager,
|
||||||
telephonyManager.getSimOperatorName().toLowerCase(),
|
telephonyManager.getSimOperatorName(),
|
||||||
currentCard.getCountryIso().toLowerCase()
|
currentCard.getCountryIso()
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue