Skip to content

Commit

Permalink
Release 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLastProject committed Nov 17, 2020
1 parent 979d88d commit dec85d8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## v1.2.1 (2020-11-17)

Changes:

- Fix home screen swiping triggering during vertical swipes too

## v1.2.0 (2020-11-17)

Changes:
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/java/protect/card_locker/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,11 @@ public void onLongPress(MotionEvent e) {
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;
Expand Down

0 comments on commit dec85d8

Please sign in to comment.