mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-03 14:54:29 +00:00
Bug 1017242 - Part 9: remove API 8 code from SysInfo. r=mfinkle
This commit is contained in:
parent
865346588d
commit
cfdf8c593a
@ -47,11 +47,7 @@ public final class SysInfo {
|
||||
return cpuCount;
|
||||
}
|
||||
|
||||
if (android.os.Build.VERSION.SDK_INT < 9) {
|
||||
return readCPUCount();
|
||||
}
|
||||
|
||||
// Avoid a strict mode warning... but only on devices that have StrictMode.
|
||||
// Avoid a strict mode warning.
|
||||
StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskReads();
|
||||
try {
|
||||
return readCPUCount();
|
||||
|
Loading…
Reference in New Issue
Block a user