|
|
@ -1322,14 +1322,14 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|
|
|
decor.setOverScrollUpdateListener(new IOverScrollUpdateListener() {
|
|
|
|
decor.setOverScrollUpdateListener(new IOverScrollUpdateListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onOverScrollUpdate(IOverScrollDecor decor, int state, float offset) {
|
|
|
|
public void onOverScrollUpdate(IOverScrollDecor decor, int state, float offset) {
|
|
|
|
float height = decor.getView().getHeight() / DEFAULT_TOUCH_DRAG_MOVE_RATIO_FWD;
|
|
|
|
float height = decor.getView().getHeight();
|
|
|
|
if (height != 0 && offset > height / 3)
|
|
|
|
if (height != 0 &&
|
|
|
|
|
|
|
|
offset * DEFAULT_TOUCH_DRAG_MOVE_RATIO_FWD > height / 4)
|
|
|
|
handleAutoClose();
|
|
|
|
handleAutoClose();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
final String pkg = Helper.getOpenKeychainPackage(getContext());
|
|
|
|
final String pkg = Helper.getOpenKeychainPackage(getContext());
|
|
|
|
Log.i("PGP binding to " + pkg);
|
|
|
|
Log.i("PGP binding to " + pkg);
|
|
|
|
pgpService = new OpenPgpServiceConnection(getContext(), pkg);
|
|
|
|
pgpService = new OpenPgpServiceConnection(getContext(), pkg);
|
|
|
|