aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-06-07 04:48:11 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-06-07 04:49:15 +0200
commita7d8a68fd2b92c874e8bf1d0ef218791744eddd7 (patch)
tree9fdf208f138249894caaa941a4a1622813a452af
parentBootShutdownReceiver: style (diff)
downloadwireguard-android-a7d8a68fd2b92c874e8bf1d0ef218791744eddd7.tar.xz
wireguard-android-a7d8a68fd2b92c874e8bf1d0ef218791744eddd7.zip
BaseActivity: style
-rw-r--r--app/src/main/java/com/wireguard/android/activity/BaseActivity.java3
-rw-r--r--app/src/main/java/com/wireguard/android/fragment/TunnelListFragment.java3
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 e7071da..7d01ad1 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 1b1b01f..08516a1 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