From ab95ac83c9cd29600b48d37cfc206313a24922b1 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Wed, 6 Jun 2018 02:32:22 +0530 Subject: MainActivity: Fix style Signed-off-by: Harsh Shandilya --- app/src/main/java/com/wireguard/android/activity/MainActivity.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'app/src/main/java/com') 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 3a0d9d7b..5a307e75 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(); -- cgit v1.2.3