mirror of https://github.com/M66B/FairEmail.git
Limit query threads
This commit is contained in:
parent
525a91af27
commit
9f9aa0525e
|
@ -296,6 +296,12 @@ public class ApplicationEx extends Application {
|
||||||
int threads = prefs.getInt("query_threads", 4);
|
int threads = prefs.getInt("query_threads", 4);
|
||||||
if (threads == 4)
|
if (threads == 4)
|
||||||
editor.remove("query_threads");
|
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)
|
if (version < BuildConfig.VERSION_CODE)
|
||||||
|
|
Loading…
Reference in New Issue