diff options
author | Harsh Shandilya <harsh@prjkt.io> | 2018-06-06 02:32:22 +0530 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-06-06 02:07:26 +0200 |
commit | 9002c8c53be2e9234b106937af1d0137cd0de5b2 (patch) | |
tree | 8d879769b23bd5f0780f195ef80d81cc4575e2bf /app/src | |
parent | 41dd78d8ae8ae87a14d64c107151c76ef6223c25 (diff) |
MainActivity: Fix style
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
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(); |