Merge "Fix Location Check for Barring and RegFail" into rvc-dev am: 2ecebea361
Change-Id: I5f6e5775574c015f51a7f324680304bc721a7ac8
This commit is contained in:
@@ -1083,7 +1083,7 @@ public class TelephonyRegistry extends ITelephonyRegistry.Stub {
|
|||||||
if (VDBG) log("listen: call onBarringInfoChanged=" + barringInfo);
|
if (VDBG) log("listen: call onBarringInfoChanged=" + barringInfo);
|
||||||
try {
|
try {
|
||||||
r.callback.onBarringInfoChanged(
|
r.callback.onBarringInfoChanged(
|
||||||
checkFineLocationAccess(r, Build.VERSION_CODES.R)
|
checkFineLocationAccess(r, Build.VERSION_CODES.BASE)
|
||||||
? barringInfo : biNoLocation);
|
? barringInfo : biNoLocation);
|
||||||
} catch (RemoteException ex) {
|
} catch (RemoteException ex) {
|
||||||
remove(r.binder);
|
remove(r.binder);
|
||||||
@@ -2277,7 +2277,7 @@ public class TelephonyRegistry extends ITelephonyRegistry.Stub {
|
|||||||
&& idMatch(r.subId, subId, phoneId)) {
|
&& idMatch(r.subId, subId, phoneId)) {
|
||||||
try {
|
try {
|
||||||
r.callback.onRegistrationFailed(
|
r.callback.onRegistrationFailed(
|
||||||
checkFineLocationAccess(r, Build.VERSION_CODES.R)
|
checkFineLocationAccess(r, Build.VERSION_CODES.BASE)
|
||||||
? cellIdentity : noLocationCi,
|
? cellIdentity : noLocationCi,
|
||||||
chosenPlmn, domain, causeCode,
|
chosenPlmn, domain, causeCode,
|
||||||
additionalCauseCode);
|
additionalCauseCode);
|
||||||
@@ -2324,7 +2324,7 @@ public class TelephonyRegistry extends ITelephonyRegistry.Stub {
|
|||||||
+ barringInfo + " r=" + r);
|
+ barringInfo + " r=" + r);
|
||||||
}
|
}
|
||||||
r.callback.onBarringInfoChanged(
|
r.callback.onBarringInfoChanged(
|
||||||
checkFineLocationAccess(r, Build.VERSION_CODES.R)
|
checkFineLocationAccess(r, Build.VERSION_CODES.BASE)
|
||||||
? barringInfo : biNoLocation);
|
? barringInfo : biNoLocation);
|
||||||
} catch (RemoteException ex) {
|
} catch (RemoteException ex) {
|
||||||
mRemoveList.add(r.binder);
|
mRemoveList.add(r.binder);
|
||||||
|
|||||||
Reference in New Issue
Block a user