From e71f859c051d35cac2f1674a63671a11c524c382 Mon Sep 17 00:00:00 2001 From: bspeice Date: Sun, 8 Dec 2013 20:43:43 -0500 Subject: [PATCH] Display the Toast message for internet down correctly --- src/com/uncc/gameday/activities/Search.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/com/uncc/gameday/activities/Search.java b/src/com/uncc/gameday/activities/Search.java index 80357b9..c32740f 100644 --- a/src/com/uncc/gameday/activities/Search.java +++ b/src/com/uncc/gameday/activities/Search.java @@ -47,8 +47,13 @@ public class Search extends MenuActivity { rsvpList = client.listAttendees(); listFetched = true; } catch (RetrofitError e) { - Toast.makeText(c, R.string.internet_down_error, - Toast.LENGTH_SHORT).show(); + runOnUiThread(new Thread(){ + public void run(){ + Toast.makeText(c, R.string.internet_down_error, + Toast.LENGTH_SHORT).show(); + } + }); + Log.e("Search", e.getMessage()); }