diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-01-17 23:05:53 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-01-17 23:05:53 +0100 |
commit | 61b04546f35a696d33cb0ab9f8721afd8765cb5e (patch) | |
tree | d9073d17a7987ab5891b052079d195a57dd71c5f /app/src/main/java/io/trygvis/android | |
parent | bc09707edf110da018a68be4d16bdfcee8af600f (diff) | |
download | io.trygvis.soilmoisture-android-61b04546f35a696d33cb0ab9f8721afd8765cb5e.tar.gz io.trygvis.soilmoisture-android-61b04546f35a696d33cb0ab9f8721afd8765cb5e.tar.bz2 io.trygvis.soilmoisture-android-61b04546f35a696d33cb0ab9f8721afd8765cb5e.tar.xz io.trygvis.soilmoisture-android-61b04546f35a696d33cb0ab9f8721afd8765cb5e.zip |
o Trying to fix issues where there is a miss match between the clicked index and the item actually clicked.
Diffstat (limited to 'app/src/main/java/io/trygvis/android')
-rw-r--r-- | app/src/main/java/io/trygvis/android/bt/BtPromise.java | 4 |
1 files changed, 4 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 c569ec2..acbed8d 100644 --- a/app/src/main/java/io/trygvis/android/bt/BtPromise.java +++ b/app/src/main/java/io/trygvis/android/bt/BtPromise.java @@ -365,6 +365,10 @@ public class BtPromise { Log.i(TAG, "next action: " + actionQ.get(currentAction).name); } + // The new promise should probably be stacked on top, so that all of its + // finally handlers are executed after the added set concludes and then the + // current stack can continue. + actionQ.addAll(currentAction, detour.actionQ); // failureQ.addAll(detour.failureQ); finallyQ.addAll(detour.finallyQ); |