Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 285f1715 authored by Philip P. Moltmann's avatar Philip P. Moltmann Committed by Android (Google) Code Review
Browse files

Merge "Update PermissionChecker usages to avoid unnecessary attribution."

parents aa3caf7c 88cc82c8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -395,8 +395,8 @@ public class CellBroadcastHandler extends WakeLockStateMachine {
        }

        private boolean hasPermission(String permission) {
            return PermissionChecker.checkCallingOrSelfPermission(mContext, permission)
                    == PERMISSION_GRANTED;
            return PermissionChecker.checkCallingOrSelfPermissionForDataDelivery(
                    mContext, permission, null) == PERMISSION_GRANTED;
        }

        private final LocationListener mLocationListener = new LocationListener() {