diff options
author | Samuel Holland <samuel@sholland.org> | 2017-11-28 20:18:11 -0600 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2017-11-28 20:18:11 -0600 |
commit | ee9b374d498d06cb38750c35c38da7c688e2ccf7 (patch) | |
tree | 2fbf3cce609b6006c3e06829199dcefbd101b3c7 | |
parent | 49df1ebc402f93cbf97202ab7a838259f804f06a (diff) |
ConfigList: Always dismiss FAB menu on ListView touch
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | app/src/main/java/com/wireguard/android/ConfigListFragment.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/app/src/main/java/com/wireguard/android/ConfigListFragment.java b/app/src/main/java/com/wireguard/android/ConfigListFragment.java index 4b0432aa..a8c8bcd4 100644 --- a/app/src/main/java/com/wireguard/android/ConfigListFragment.java +++ b/app/src/main/java/com/wireguard/android/ConfigListFragment.java @@ -14,7 +14,6 @@ import android.view.View; import android.view.ViewGroup; import android.widget.AbsListView; import android.widget.AdapterView; -import android.widget.ListView; import com.wireguard.android.backends.VpnService; import com.wireguard.android.bindings.ObservableMapAdapter; @@ -93,12 +92,7 @@ public class ConfigListFragment extends BaseConfigFragment { @Override @SuppressLint("ClickableViewAccessibility") public boolean onTouch(final View view, final MotionEvent event) { - if (event.getAction() == MotionEvent.ACTION_DOWN && - binding.configList.pointToPosition((int) event.getX(), (int) event.getY()) - == ListView.INVALID_POSITION) { - binding.addMenu.collapse(); - return true; - } + binding.addMenu.collapse(); return false; } }); |