test
This commit is contained in:
parent
273507ea6f
commit
6f4d032a19
1 changed files with 4 additions and 8 deletions
|
@ -395,9 +395,6 @@ public class MainActivity extends AppCompatActivity implements PostRequestCallba
|
|||
// Log.i("a", "Sim connected result: " + isSimConnected(context, phone.telephonyManager));
|
||||
if(!isSimConnected(context, phone.telephonyManager))
|
||||
nextPhone();
|
||||
else
|
||||
if(!ussd.has(phone.operator))
|
||||
nextPhone();
|
||||
else
|
||||
requestUssdNumber(phone);
|
||||
}
|
||||
|
@ -452,9 +449,8 @@ 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
|
||||
currentLanguage = "en"; // STATIC
|
||||
|
||||
if(!result.getJSONObject("data").has(currentLanguage))
|
||||
currentLanguage = "en";
|
||||
language = result.getJSONObject(
|
||||
"data" // STATIC
|
||||
).getJSONObject(currentLanguage);
|
||||
|
@ -468,7 +464,7 @@ public class MainActivity extends AppCompatActivity implements PostRequestCallba
|
|||
requestPermissions(retrievePermissions(this));
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
} catch (JSONException e) {
|
||||
// Log.i("ww", Arrays.toString(e.getStackTrace()));
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue