summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/profiles/triggers/BluetoothTriggerFragment.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/settings/profiles/triggers/BluetoothTriggerFragment.java')
-rw-r--r--src/com/android/settings/profiles/triggers/BluetoothTriggerFragment.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/settings/profiles/triggers/BluetoothTriggerFragment.java b/src/com/android/settings/profiles/triggers/BluetoothTriggerFragment.java
index 834a5fc..b3478e8 100644
--- a/src/com/android/settings/profiles/triggers/BluetoothTriggerFragment.java
+++ b/src/com/android/settings/profiles/triggers/BluetoothTriggerFragment.java
@@ -127,13 +127,13 @@ public class BluetoothTriggerFragment 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;
}
}