diff options
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: "); |