mirror of
https://github.com/bspeice/UNCCGameDay
synced 2024-11-04 23:28:12 -05:00
Display the Toast message for internet down correctly
This commit is contained in:
parent
a5bd595a48
commit
e71f859c05
@ -47,8 +47,13 @@ public class Search extends MenuActivity {
|
|||||||
rsvpList = client.listAttendees();
|
rsvpList = client.listAttendees();
|
||||||
listFetched = true;
|
listFetched = true;
|
||||||
} catch (RetrofitError e) {
|
} catch (RetrofitError e) {
|
||||||
Toast.makeText(c, R.string.internet_down_error,
|
runOnUiThread(new Thread(){
|
||||||
Toast.LENGTH_SHORT).show();
|
public void run(){
|
||||||
|
Toast.makeText(c, R.string.internet_down_error,
|
||||||
|
Toast.LENGTH_SHORT).show();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
Log.e("Search", e.getMessage());
|
Log.e("Search", e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user