From db53e17e588a51a51c380c1b9d102fb9e151250f Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 5 Jun 2018 02:50:50 +0200 Subject: 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 --- .../java/com/wireguard/android/fragment/TunnelListFragment.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app/src/main/java') diff --git a/app/src/main/java/com/wireguard/android/fragment/TunnelListFragment.java b/app/src/main/java/com/wireguard/android/fragment/TunnelListFragment.java index 4ad36a94..f6e99759 100644 --- a/app/src/main/java/com/wireguard/android/fragment/TunnelListFragment.java +++ b/app/src/main/java/com/wireguard/android/fragment/TunnelListFragment.java @@ -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. -- cgit v1.2.3