Display the Toast message for internet down correctly

This commit is contained in:
bspeice 2013-12-08 20:43:43 -05:00
parent a5bd595a48
commit e71f859c05

View File

@ -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());
} }