mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 00:23:09 +02:00
Limit similar ops to chunk size
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user