summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/profiles/triggers/WifiTriggerFragment.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/settings/profiles/triggers/WifiTriggerFragment.java')
-rw-r--r--src/com/android/settings/profiles/triggers/WifiTriggerFragment.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/com/android/settings/profiles/triggers/WifiTriggerFragment.java b/src/com/android/settings/profiles/triggers/WifiTriggerFragment.java
index 5ec1996..dc91cec 100644
--- a/src/com/android/settings/profiles/triggers/WifiTriggerFragment.java
+++ b/src/com/android/settings/profiles/triggers/WifiTriggerFragment.java
@@ -121,13 +121,13 @@ public class WifiTriggerFragment extends ListFragment {
entries = new String[triggers.size()];
final int[] valueInts = new int[triggers.size()];
- int currentTrigger = mProfile.getTrigger(triggerType, triggerId);
+ int currentTriggerState = mProfile.getTriggerState(triggerType, triggerId);
int currentItem = -1;
for (int i = 0; i < triggers.size(); i++) {
Trigger t = triggers.get(i);
entries[i] = t.name;
valueInts[i] = t.value;
- if (valueInts[i] == currentTrigger) {
+ if (valueInts[i] == currentTriggerState) {
currentItem = i;
}
}
@@ -172,7 +172,8 @@ public class WifiTriggerFragment extends ListFragment {
if (configs != null) {
for (WifiConfiguration config : configs) {
WifiTrigger accessPoint = new WifiTrigger(config);
- int state = mProfile.getTrigger(Profile.TriggerType.WIFI, accessPoint.getSSID());
+ int state = mProfile.getTriggerState(
+ Profile.TriggerType.WIFI, accessPoint.getSSID());
initPreference(accessPoint, state, res, R.drawable.ic_wifi_signal_4_teal);
mTriggers.add(accessPoint);
}