summaryrefslogtreecommitdiffhomepage
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-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 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();