diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2018-06-06 02:32:22 +0530 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-06-06 02:07:26 +0200 |
commit | ab95ac83c9cd29600b48d37cfc206313a24922b1 (patch) | |
tree | 8d879769b23bd5f0780f195ef80d81cc4575e2bf /app/src | |
parent | 51fb57433b94bbf7cae5cf352e67be2d2316adcf (diff) |
MainActivity: Fix style
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/com/wireguard/android/activity/MainActivity.java | 7 |
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 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(); |