fixed toast message

This commit is contained in:
massimiliano 2019-02-18 20:38:46 +01:00
parent 079e4af13b
commit c5837a2d4e
3 changed files with 2 additions and 11 deletions

View File

@ -1929,15 +1929,6 @@ public class MainActivity extends AppCompatActivity implements View.OnLongClickL
}
}else {
Log.e(TAG, "Couldn't get json from server.");
runOnUiThread(new Runnable() {
@Override
public void run() {
Toast.makeText(getApplicationContext(),
"Couldn't get json from server. Check LogCat for possible errors!",
Toast.LENGTH_LONG)
.show();
}
});
}
return null;
}

View File

@ -220,7 +220,7 @@ public class StateActivity extends AppCompatActivity {
@Override
public void run() {
Toast.makeText(getApplicationContext(),
"Couldn't get json from server. Check LogCat for possible errors!",
"Couldn't get json from server. Is your internet connection ok?",
Toast.LENGTH_LONG)
.show();
}

View File

@ -172,7 +172,7 @@ public class StateMessagesActivity extends AppCompatActivity {
@Override
public void run() {
Toast.makeText(getApplicationContext(),
"Couldn't get json from server. Check LogCat for possible errors!",
"Couldn't get json from server. Is your internet connection ok?",
Toast.LENGTH_LONG)
.show();
}