mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1200696 - Don't use VERSION_CODE as it can break the build with older sdks. r=sebastian
This commit is contained in:
parent
4aa8ea6234
commit
00dbf67707
@ -85,7 +85,7 @@ public class CellScannerImplementation implements CellScanner.CellScannerImpl {
|
||||
mIsStarted = true;
|
||||
|
||||
if (mTelephonyManager == null) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) {
|
||||
if (Build.VERSION.SDK_INT >= 18 /*Build.VERSION_CODES.JELLY_BEAN_MR2 */) {
|
||||
mGetAllInfoCellScanner = new GetAllCellInfoScannerMr2();
|
||||
} else {
|
||||
mGetAllInfoCellScanner = new GetAllCellInfoScannerDummy();
|
||||
@ -170,7 +170,8 @@ public class CellScannerImplementation implements CellScanner.CellScannerImpl {
|
||||
}
|
||||
|
||||
private List<CellInfo> getNeighboringCells() {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1) {
|
||||
// For max fennec compatibility, avoid VERSION_CODES
|
||||
if (Build.VERSION.SDK_INT >= 22 /* Build.VERSION_CODES.LOLLIPOP_MR1 */) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user