test
This commit is contained in:
parent
2dd2014aea
commit
76bc7ed59c
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue