mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 22:51:02 +00:00
Limit similar ops to chunk size
This commit is contained in:
parent
e9788f811c
commit
2f24588f57
1 changed files with 6 additions and 0 deletions
|
@ -190,6 +190,9 @@ class Core {
|
|||
Store istore = iservice.getStore();
|
||||
DB db = DB.getInstance(context);
|
||||
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
int chunk_size = prefs.getInt("chunk_size", DEFAULT_CHUNK_SIZE);
|
||||
|
||||
NotificationManager nm =
|
||||
(NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
|
||||
|
||||
|
@ -315,6 +318,9 @@ class Core {
|
|||
}
|
||||
break;
|
||||
}
|
||||
|
||||
if (similar.size() >= chunk_size)
|
||||
break;
|
||||
}
|
||||
|
||||
if (skip) {
|
||||
|
|
Loading…
Reference in a new issue