mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 17:57:16 +00:00
Touched hours
This commit is contained in:
parent
8a4e6aa939
commit
497ce2fda6
2 changed files with 3 additions and 3 deletions
|
@ -358,7 +358,7 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
|
||||||
criteria.with_size,
|
criteria.with_size,
|
||||||
criteria.after,
|
criteria.after,
|
||||||
criteria.before,
|
criteria.before,
|
||||||
criteria.touched == null ? null : new Date().getTime() - criteria.touched,
|
criteria.touched == null ? null : new Date().getTime() - criteria.touched * 3600 * 1000L,
|
||||||
SEARCH_LIMIT_DEVICE, state.offset);
|
SEARCH_LIMIT_DEVICE, state.offset);
|
||||||
EntityLog.log(context, "Boundary device" +
|
EntityLog.log(context, "Boundary device" +
|
||||||
" account=" + account +
|
" account=" + account +
|
||||||
|
@ -819,7 +819,7 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
|
||||||
}
|
}
|
||||||
|
|
||||||
if (criteria.touched != null) {
|
if (criteria.touched != null) {
|
||||||
if (message.last_attempt == null || message.last_attempt < new Date().getTime() - criteria.touched)
|
if (message.last_attempt == null || message.last_attempt < new Date().getTime() - criteria.touched * 3600 * 1000L)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -65,7 +65,7 @@ import java.util.List;
|
||||||
|
|
||||||
public class FragmentDialogSearch extends FragmentDialogBase {
|
public class FragmentDialogSearch extends FragmentDialogBase {
|
||||||
private static final int MAX_SUGGESTIONS = 3;
|
private static final int MAX_SUGGESTIONS = 3;
|
||||||
private static final int RECENTLY_TOUCHED = 3600 * 1000; // milliseconds
|
private static final int RECENTLY_TOUCHED = 7 * 24; // hours
|
||||||
|
|
||||||
@NonNull
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue