-
Notifications
You must be signed in to change notification settings - Fork 735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a "Test Connection" button to the main activity #56
Conversation
private class TestConnection extends AsyncTask<String, Void, TestConnectionResult> { | ||
protected void onPreExecute() { | ||
super.onPreExecute(); | ||
testConnectionButton.setText(R.string.testing); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Disable the button when the test is in progress
Fixed |
To pull upstream commits to your developing branch, |
LGTM 🍻 |
Nice, thanks for telling me this, I'll use rebase next time. |
This button will test connection to https://www.google.com and show the result in a toast.
When succeed: show the time been used
When failed: show error message