mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 09:47:13 +00:00
Made pull down to close more sensitive
This commit is contained in:
parent
eb3420aacc
commit
10855265a4
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue