mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-15 08:29:24 +00:00
Limit query threads
This commit is contained in:
parent
525a91af27
commit
9f9aa0525e
1 changed files with 6 additions and 0 deletions
|
@ -296,6 +296,12 @@ public class ApplicationEx extends Application {
|
|||
int threads = prefs.getInt("query_threads", 4);
|
||||
if (threads == 4)
|
||||
editor.remove("query_threads");
|
||||
} else if (version < 1264) {
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N ||
|
||||
"Blackview".equalsIgnoreCase(Build.MANUFACTURER) ||
|
||||
"OnePlus".equalsIgnoreCase(Build.MANUFACTURER) ||
|
||||
"HUAWEI".equalsIgnoreCase(Build.MANUFACTURER))
|
||||
editor.putInt("query_threads", 2);
|
||||
}
|
||||
|
||||
if (version < BuildConfig.VERSION_CODE)
|
||||
|
|
Loading…
Add table
Reference in a new issue