diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-01-20 00:19:22 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-01-20 00:19:22 +0100 |
commit | 138b49247a72890df66af9a01e1179dab72a4b71 (patch) | |
tree | 1148ba8af422f04fd743b244c11c1e1aff9bd9de /app/src/main/java/io/trygvis/android | |
parent | 92872d1063c228abfccd6b585801fa83528e1a28 (diff) | |
download | io.trygvis.soilmoisture-android-138b49247a72890df66af9a01e1179dab72a4b71.tar.gz io.trygvis.soilmoisture-android-138b49247a72890df66af9a01e1179dab72a4b71.tar.bz2 io.trygvis.soilmoisture-android-138b49247a72890df66af9a01e1179dab72a4b71.tar.xz io.trygvis.soilmoisture-android-138b49247a72890df66af9a01e1179dab72a4b71.zip |
o Adding a way to append promises to promises.
o Reading each sensors name when probing a device.
o Enabling probing on long presses on already probed devices. Is probably useful to update the local information when other handsets has updated the device's values.
Diffstat (limited to 'app/src/main/java/io/trygvis/android')
-rw-r--r-- | app/src/main/java/io/trygvis/android/bt/BtPromise.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/src/main/java/io/trygvis/android/bt/BtPromise.java b/app/src/main/java/io/trygvis/android/bt/BtPromise.java index edb2894..50aad13 100644 --- a/app/src/main/java/io/trygvis/android/bt/BtPromise.java +++ b/app/src/main/java/io/trygvis/android/bt/BtPromise.java @@ -218,6 +218,12 @@ public class BtPromise { return this; } + public BtPromise andThen(BtPromise btPromise) { + actionQ.addAll(btPromise.actionQ); + finallyQ.addAll(btPromise.finallyQ); + return this; + } + public String toString() { StringBuilder s = new StringBuilder("Queue: "); |