MainActivity: Fix style
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
51fb57433b
commit
ab95ac83c9
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user