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 | b8701b010e60247fb8b3bd3cd46ddf82821220ff (patch) | |
tree | e6e1082b510503a261a205b46efc5811b2ae0616 /app/src/main | |
parent | a0b6da2e0f203fee8d69c7751ea7acd2aaeb25ff (diff) |
TunnelListFragment: hide menu when going to settings
Really the menu should be hidden when clicking on the action bar, too.
Diffstat (limited to 'app/src/main')
-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. } |