Skip to content

Commit

Permalink
Add toast when service connection cannot be established (closes #1757)
Browse files Browse the repository at this point in the history
This is just an example app that should give an example of a happy path.
It shouldn't require handle all the errors...
  • Loading branch information
schwabe committed Dec 4, 2024
1 parent 8740de0 commit 4e40d8a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ public void onStop() {

@Override
public void onClick(View v) {
if (mService == null) {
Toast.makeText(getActivity(), "No service connection to OpenVPN for Android. App not installed?", Toast.LENGTH_LONG).show();
return;
}
switch (v.getId()) {
case R.id.startVPN:
try {
Expand Down

0 comments on commit 4e40d8a

Please sign in to comment.