diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/com/wireguard/android/activity/BaseActivity.java | 3 | ||||
-rw-r--r-- | app/src/main/java/com/wireguard/android/fragment/TunnelListFragment.java | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/app/src/main/java/com/wireguard/android/activity/BaseActivity.java b/app/src/main/java/com/wireguard/android/activity/BaseActivity.java index e7071da4..7d01ad1f 100644 --- a/app/src/main/java/com/wireguard/android/activity/BaseActivity.java +++ b/app/src/main/java/com/wireguard/android/activity/BaseActivity.java @@ -56,9 +56,8 @@ public abstract class BaseActivity extends ThemeChangeAwareActivity { if (Application.getBackendType() == GoBackend.class) { final Intent intent = GoBackend.VpnService.prepare(this); - if (intent != null) { + if (intent != null) startActivityForResult(intent, 0); - } } } diff --git a/app/src/main/java/com/wireguard/android/fragment/TunnelListFragment.java b/app/src/main/java/com/wireguard/android/fragment/TunnelListFragment.java index 1b1b01fe..08516a10 100644 --- a/app/src/main/java/com/wireguard/android/fragment/TunnelListFragment.java +++ b/app/src/main/java/com/wireguard/android/fragment/TunnelListFragment.java @@ -269,9 +269,8 @@ public class TunnelListFragment extends BaseFragment { tunnels.size() + throwables.size(), tunnels.size(), tunnels.size() + throwables.size()); - if (binding != null) { + if (binding != null) Snackbar.make(binding.mainContainer, message, Snackbar.LENGTH_LONG).show(); - } } @Override |