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

Commit fc6770e7 authored by Victoria Lease's avatar Victoria Lease Committed by Android (Google) Code Review
Browse files

Merge "Remove checkPermission() call in getAllProviders()." into jb-mr1-dev

parents 1fd34745 0d21e216
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -645,12 +645,11 @@ public class LocationManagerService extends ILocationManager.Stub implements Run

    /**
     * Returns all providers by name, including passive, but excluding
     * fused.
     * fused, also including ones that are not permitted to
     * be accessed by the calling activity or are currently disabled.
     */
    @Override
    public List<String> getAllProviders() {
        checkPermission();

        ArrayList<String> out;
        synchronized (mLock) {
            out = new ArrayList<String>(mProviders.size());