Release 1.2.1

This commit is contained in:
Sylvia van Os
2020-11-17 14:19:21 +01:00
parent 979d88d2e6
commit dec85d8fa9
2 changed files with 11 additions and 0 deletions

View File

@@ -536,6 +536,11 @@ public class MainActivity extends AppCompatActivity implements GestureDetector.O
public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {
Log.d(TAG, "On fling");
// Don't swipe if we have too much vertical movement
if (Math.abs(velocityY) > (0.75 * Math.abs(velocityX))) {
return false;
}
TabLayout groupsTabLayout = findViewById(R.id.groups);
if (groupsTabLayout.getTabCount() < 2) {
return false;