MainActivity: Fix style

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2018-06-06 02:32:22 +05:30 committed by Jason A. Donenfeld
parent 51fb57433b
commit ab95ac83c9

View File

@ -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();