fixed toast message
This commit is contained in:
parent
079e4af13b
commit
c5837a2d4e
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue