Merge "Use P SDK Constant To Check NeighboringCell" am: 68f322ab62
am: f6bb9e4baf
Change-Id: Iff7aab5447b3321b0868ab8bd1c1c8d4e34abb18
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index a99d01e..ed77c0c 100755
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -1924,8 +1924,7 @@
@SuppressWarnings("unchecked")
public List<NeighboringCellInfo>
getNeighboringCellInfo(String callingPackage, int targetSdk) {
- // FIXME: use the P constant when available
- if (targetSdk > android.os.Build.VERSION_CODES.O_MR1 + 1) return null;
+ if (targetSdk > android.os.Build.VERSION_CODES.P) return null;
if (mAppOps.noteOp(AppOpsManager.OP_NEIGHBORING_CELLS, Binder.getCallingUid(),
callingPackage) != AppOpsManager.MODE_ALLOWED) {