diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-06-05 02:50:50 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-06-05 03:05:58 +0200 |
commit | db53e17e588a51a51c380c1b9d102fb9e151250f (patch) | |
tree | e6e1082b510503a261a205b46efc5811b2ae0616 /app | |
parent | f0a3e6374359d61e1efb9563ddbb8b02fd4b9027 (diff) |
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>
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/com/wireguard/android/fragment/TunnelListFragment.java | 6 |
1 files changed, 6 insertions, 0 deletions
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 @@ -230,6 +230,12 @@ public class TunnelListFragment extends BaseFragment { } @Override + public void onPause() { + binding.createMenu.collapse(); + super.onPause(); + } + + @Override public void onSelectedTunnelChanged(final Tunnel oldTunnel, final Tunnel newTunnel) { // Do nothing. } |