mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 22:51:02 +00:00
Refactoring
This commit is contained in:
parent
03c1ddd9ce
commit
9c84e8ad59
1 changed files with 2 additions and 1 deletions
|
@ -167,6 +167,7 @@ public class FragmentMessages extends FragmentBase {
|
||||||
private static final int LOCAL_PAGE_SIZE = 100;
|
private static final int LOCAL_PAGE_SIZE = 100;
|
||||||
private static final int REMOTE_PAGE_SIZE = 10;
|
private static final int REMOTE_PAGE_SIZE = 10;
|
||||||
private static final int UNDO_TIMEOUT = 5000; // milliseconds
|
private static final int UNDO_TIMEOUT = 5000; // milliseconds
|
||||||
|
private static final int SWIPE_DISABLE_SELECT_DURATION = 1500; // milliseconds
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCreate(Bundle savedInstanceState) {
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
|
@ -687,7 +688,7 @@ public class FragmentMessages extends FragmentBase {
|
||||||
if (isCurrentlyActive)
|
if (isCurrentlyActive)
|
||||||
selectionPredicate.setEnabled(false);
|
selectionPredicate.setEnabled(false);
|
||||||
else
|
else
|
||||||
handler.postDelayed(enableSelection, 1000);
|
handler.postDelayed(enableSelection, SWIPE_DISABLE_SELECT_DURATION);
|
||||||
}
|
}
|
||||||
|
|
||||||
TupleMessageEx message = getMessage(viewHolder);
|
TupleMessageEx message = getMessage(viewHolder);
|
||||||
|
|
Loading…
Reference in a new issue