diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-06-07 04:48:11 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-06-07 04:49:15 +0200 |
commit | 2ca27c2783e11b25c37ae64821afef68ae597652 (patch) | |
tree | 9fdf208f138249894caaa941a4a1622813a452af /app | |
parent | f190db075411fa12443d4cb2a1e93a8f2613854b (diff) |
BaseActivity: style
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
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 |