TunnelListFragment: hide menu when going to settings

Really the menu should be hidden when clicking on the action bar, too.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2018-06-05 02:50:50 +02:00
parent f0a3e63743
commit db53e17e58

View File

@ -229,6 +229,12 @@ public class TunnelListFragment extends BaseFragment {
binding.createMenu.collapse();
}
@Override
public void onPause() {
binding.createMenu.collapse();
super.onPause();
}
@Override
public void onSelectedTunnelChanged(final Tunnel oldTunnel, final Tunnel newTunnel) {
// Do nothing.