Skip to content
Snippets Groups Projects
Commit c5837a2d authored by Massimiliano's avatar Massimiliano
Browse files

fixed toast message

parent 079e4af1
Branches
Tags
No related merge requests found
...@@ -1929,15 +1929,6 @@ public class MainActivity extends AppCompatActivity implements View.OnLongClickL ...@@ -1929,15 +1929,6 @@ public class MainActivity extends AppCompatActivity implements View.OnLongClickL
} }
}else { }else {
Log.e(TAG, "Couldn't get json from server."); 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; return null;
} }
......
...@@ -220,7 +220,7 @@ public class StateActivity extends AppCompatActivity { ...@@ -220,7 +220,7 @@ public class StateActivity extends AppCompatActivity {
@Override @Override
public void run() { public void run() {
Toast.makeText(getApplicationContext(), 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) Toast.LENGTH_LONG)
.show(); .show();
} }
......
...@@ -172,7 +172,7 @@ public class StateMessagesActivity extends AppCompatActivity { ...@@ -172,7 +172,7 @@ public class StateMessagesActivity extends AppCompatActivity {
@Override @Override
public void run() { public void run() {
Toast.makeText(getApplicationContext(), 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) Toast.LENGTH_LONG)
.show(); .show();
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment