activity: Remove useless indirection

Signed-off-by: Samuel Holland <samuel@sholland.org>
This commit is contained in:
Samuel Holland
2018-01-06 05:18:34 -06:00
parent 63efaa2dcc
commit dbed7155d6
3 changed files with 6 additions and 10 deletions
@@ -120,9 +120,8 @@ public class MainActivity extends BaseActivity {
@Override
protected Tunnel onSelectedTunnelChanged(final Tunnel oldTunnel, final Tunnel newTunnel) {
protected void onSelectedTunnelChanged(final Tunnel oldTunnel, final Tunnel newTunnel) {
moveToState(newTunnel != null ? State.DETAIL : State.LIST);
return newTunnel;
}
private enum State {