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

Commit 5f00c8a9 authored by xshu's avatar xshu
Browse files

WifiManager: getScanResults fix javadoc

The javadoc is inconsistent with the acutal implementation.
The intended implementation actually throws an Exception instead of
returning an empty list.

Bug: 62786310
Test: compile, unit tests
Change-Id: Ifcb89dd6bea1a73f8db079a84ed32c46bbcb3bce
parent f0ed7769
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1698,9 +1698,7 @@ public class WifiManager {
     * @return the list of access points found in the most recent scan. An app must hold
     * {@link android.Manifest.permission#ACCESS_COARSE_LOCATION ACCESS_COARSE_LOCATION} or
     * {@link android.Manifest.permission#ACCESS_FINE_LOCATION ACCESS_FINE_LOCATION} permission
     * in order to get valid results.  If there is a remote exception (e.g., either a communication
     * problem with the system service or an exception within the framework) an empty list will be
     * returned.
     * in order to get valid results.
     */
    public List<ScanResult> getScanResults() {
        try {