Compare commits

...

2 commits

Author SHA1 Message Date
Your Name
a4daf17c56 Merge remote-tracking branch 'origin/main' 2025-04-15 20:20:51 +03:00
Your Name
da489a7f49 test 2025-04-15 20:20:47 +03:00

View file

@ -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()
)); ));
} }
/* /*