summaryrefslogtreecommitdiff
path: root/altosui/AltosBTDeviceIterator.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-04-19 08:43:40 -0700
committerKeith Packard <keithp@keithp.com>2011-04-19 08:43:40 -0700
commit17f38e045fcd8ca0224095c0b2b7b098df77a8d8 (patch)
tree07c49d1151a54d3176f2356b55b6f9f129305b9c /altosui/AltosBTDeviceIterator.java
parentf249e5926f5fd9f86c41e7f0a414193533d4d8b0 (diff)
altosui: Use persistent list of bluetooth devices for device dialogs
Store a list of known bluetooth devices as preferences. Always include those in device dialogs with an option to go browse for more devices in both the device dialog and the Configure AltosUI dialog. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosBTDeviceIterator.java')
-rw-r--r--altosui/AltosBTDeviceIterator.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/altosui/AltosBTDeviceIterator.java b/altosui/AltosBTDeviceIterator.java
index 63ce3674..7c360705 100644
--- a/altosui/AltosBTDeviceIterator.java
+++ b/altosui/AltosBTDeviceIterator.java
@@ -21,7 +21,6 @@ import java.util.*;
import libaltosJNI.*;
public class AltosBTDeviceIterator implements Iterator<AltosBTDevice> {
- int product;
AltosBTDevice current;
boolean done;
SWIGTYPE_p_altos_bt_list list;
@@ -58,11 +57,9 @@ public class AltosBTDeviceIterator implements Iterator<AltosBTDevice> {
throw new UnsupportedOperationException();
}
- public AltosBTDeviceIterator(int in_product) {
- product = in_product;
+ public AltosBTDeviceIterator(int inquiry_time) {
done = false;
current = null;
- list = libaltos.altos_bt_list_start();
- System.out.printf("Iteration of BT list started\n");
+ list = libaltos.altos_bt_list_start(inquiry_time);
}
}