From 10855265a4ccf2722bc0d8610985b149baa43278 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 21 Jul 2020 18:46:03 +0200 Subject: [PATCH] Made pull down to close more sensitive --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index d3beec5074..a00270990e 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -1322,14 +1322,14 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. decor.setOverScrollUpdateListener(new IOverScrollUpdateListener() { @Override public void onOverScrollUpdate(IOverScrollDecor decor, int state, float offset) { - float height = decor.getView().getHeight() / DEFAULT_TOUCH_DRAG_MOVE_RATIO_FWD; - if (height != 0 && offset > height / 3) + float height = decor.getView().getHeight(); + if (height != 0 && + offset * DEFAULT_TOUCH_DRAG_MOVE_RATIO_FWD > height / 4) handleAutoClose(); } }); } - final String pkg = Helper.getOpenKeychainPackage(getContext()); Log.i("PGP binding to " + pkg); pgpService = new OpenPgpServiceConnection(getContext(), pkg);