From a7d8a68fd2b92c874e8bf1d0ef218791744eddd7 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 7 Jun 2018 04:48:11 +0200 Subject: BaseActivity: style --- app/src/main/java/com/wireguard/android/activity/BaseActivity.java | 3 +-- .../main/java/com/wireguard/android/fragment/TunnelListFragment.java | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'app/src/main/java') 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 -- cgit v1.2.3