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() { public void onBackPressed() {
TunnelListFragment fragment = null; TunnelListFragment fragment = null;
try { try {
fragment = fragment = ((TunnelListFragment) getSupportFragmentManager().getFragments().get(0));
((TunnelListFragment) } catch (final ClassCastException ignored) { }
getSupportFragmentManager().getFragments().get(0));
} catch (final ClassCastException ignored) {
}
if (fragment == null || !fragment.collapseActionMenu()) { if (fragment == null || !fragment.collapseActionMenu()) {
if (!moveToState(State.ofLayer(state.layer - 1))) if (!moveToState(State.ofLayer(state.layer - 1)))
super.onBackPressed(); super.onBackPressed();