mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 23:26:12 +02:00
Auto hide answer for web view scrolling
This commit is contained in:
@@ -26,6 +26,8 @@ import static android.text.format.DateUtils.FORMAT_SHOW_DATE;
|
||||
import static android.text.format.DateUtils.FORMAT_SHOW_WEEKDAY;
|
||||
import static android.view.KeyEvent.ACTION_DOWN;
|
||||
import static android.view.KeyEvent.ACTION_UP;
|
||||
import static android.view.View.GONE;
|
||||
import static android.view.View.VISIBLE;
|
||||
import static androidx.recyclerview.widget.RecyclerView.NO_POSITION;
|
||||
import static org.openintents.openpgp.OpenPgpSignatureResult.RESULT_KEY_MISSING;
|
||||
import static org.openintents.openpgp.OpenPgpSignatureResult.RESULT_NO_SIGNATURE;
|
||||
@@ -2480,7 +2482,16 @@ public class FragmentMessages extends FragmentBase
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setPosition(long id, Pair<Integer, Integer> position) {
|
||||
public void setPosition(long id, Pair<Integer, Integer> delta, Pair<Integer, Integer> position) {
|
||||
if (delta != null && delta.second != 0) {
|
||||
boolean down = (delta.second > 0);
|
||||
if (scrolling != down) {
|
||||
scrolling = down;
|
||||
updateCompose();
|
||||
updateExpanded();
|
||||
}
|
||||
}
|
||||
|
||||
if (position == null)
|
||||
positions.remove(id);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user