This commit is contained in:
Your Name 2025-04-15 02:16:11 +03:00
parent 2dd2014aea
commit 76bc7ed59c

View file

@ -448,9 +448,12 @@ public class MainActivity extends AppCompatActivity implements PostRequestCallba
} else if (result.get("name"). // STATIC
equals("languages")) { // STATIC
String currentLanguage = Locale.getDefault().getLanguage();
if(!result.getJSONObject("data").has(currentLanguage)) // STATIC
String currentLanguage;
if(!result.getJSONObject("data").has(Locale.getDefault().getLanguage())) // STATIC
currentLanguage = "en"; // STATIC
else
currentLanguage = Locale.getDefault().getLanguage();
language = result.getJSONObject(
"data" // STATIC