summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2020-02-06 05:17:30 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-02-06 05:17:30 +0000
commitc7e8f5002197dc0e48bc868820b90089da88a41e (patch)
tree499e4831951f7f80729cfc6402383578f94f67c8 /libs
parent2b7156c31dabc2661575075f4dc5d354f0c03f8a (diff)
parenteea7682c0600959fd7ade2a9548937f82da71c9a (diff)
Merge "Revert "Revert "[WifiTrackerLib] Implement autojoin toggling for Passpoint networks"""
Diffstat (limited to 'libs')
-rw-r--r--libs/WifiTrackerLib/src/com/android/wifitrackerlib/PasspointWifiEntry.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/libs/WifiTrackerLib/src/com/android/wifitrackerlib/PasspointWifiEntry.java b/libs/WifiTrackerLib/src/com/android/wifitrackerlib/PasspointWifiEntry.java
index 4bba228a3..72908d795 100644
--- a/libs/WifiTrackerLib/src/com/android/wifitrackerlib/PasspointWifiEntry.java
+++ b/libs/WifiTrackerLib/src/com/android/wifitrackerlib/PasspointWifiEntry.java
@@ -298,19 +298,17 @@ class PasspointWifiEntry extends WifiEntry {
@Override
public boolean isAutoJoinEnabled() {
- // TODO(b/70983952): Fill this method in
- return false;
+ return mPasspointConfig.isAutojoinEnabled();
}
@Override
public boolean canSetAutoJoinEnabled() {
- // TODO(b/70983952): Fill this method in
- return false;
+ return true;
}
@Override
public void setAutoJoinEnabled(boolean enabled) {
- // TODO(b/70983952): Fill this method in
+ mWifiManager.allowAutojoinPasspoint(mPasspointConfig.getHomeSp().getFqdn(), enabled);
}
@Override