ConfigList: Always dismiss FAB menu on ListView touch
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
49df1ebc40
commit
ee9b374d49
@ -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;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user