activity: Remove useless indirection
Signed-off-by: Samuel Holland <samuel@sholland.org>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user