aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorHarsh Shandilya <harsh@prjkt.io>2018-06-06 02:32:22 +0530
committerJason A. Donenfeld <Jason@zx2c4.com>2018-06-06 02:07:26 +0200
commit9002c8c53be2e9234b106937af1d0137cd0de5b2 (patch)
tree8d879769b23bd5f0780f195ef80d81cc4575e2bf
parentToolsInstallerPreference: do not check for magisk on main thread (diff)
downloadwireguard-android-9002c8c53be2e9234b106937af1d0137cd0de5b2.tar.xz
wireguard-android-9002c8c53be2e9234b106937af1d0137cd0de5b2.zip
MainActivity: Fix style
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
-rw-r--r--app/src/main/java/com/wireguard/android/activity/MainActivity.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/app/src/main/java/com/wireguard/android/activity/MainActivity.java b/app/src/main/java/com/wireguard/android/activity/MainActivity.java
index 3a0d9d7..5a307e7 100644
--- a/app/src/main/java/com/wireguard/android/activity/MainActivity.java
+++ b/app/src/main/java/com/wireguard/android/activity/MainActivity.java
@@ -72,11 +72,8 @@ public class MainActivity extends BaseActivity {
public void onBackPressed() {
TunnelListFragment fragment = null;
try {
- fragment =
- ((TunnelListFragment)
- getSupportFragmentManager().getFragments().get(0));
- } catch (final ClassCastException ignored) {
- }
+ fragment = ((TunnelListFragment) getSupportFragmentManager().getFragments().get(0));
+ } catch (final ClassCastException ignored) { }
if (fragment == null || !fragment.collapseActionMenu()) {
if (!moveToState(State.ofLayer(state.layer - 1)))
super.onBackPressed();