Limit similar ops to chunk size

pull/194/merge
M66B 4 years ago
parent e9788f811c
commit 2f24588f57

@ -190,6 +190,9 @@ class Core {
Store istore = iservice.getStore(); Store istore = iservice.getStore();
DB db = DB.getInstance(context); DB db = DB.getInstance(context);
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
int chunk_size = prefs.getInt("chunk_size", DEFAULT_CHUNK_SIZE);
NotificationManager nm = NotificationManager nm =
(NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
@ -315,6 +318,9 @@ class Core {
} }
break; break;
} }
if (similar.size() >= chunk_size)
break;
} }
if (skip) { if (skip) {

Loading…
Cancel
Save