mirror of
https://github.com/bspeice/UNCCGameDay
synced 2024-11-05 07:38:13 -05:00
Display the toast correctly in the Registration page if internet is down
This commit is contained in:
parent
2a366c5e43
commit
90f149b51a
@ -120,7 +120,11 @@ public class Registration extends MenuActivity {
|
|||||||
RegistrationClient client = new RegistrationClient(c);
|
RegistrationClient client = new RegistrationClient(c);
|
||||||
client.registerAttendee(a);
|
client.registerAttendee(a);
|
||||||
} catch (RetrofitError e) {
|
} 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("Registration", e.getLocalizedMessage());
|
Log.e("Registration", e.getLocalizedMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user