From 61b04546f35a696d33cb0ab9f8721afd8765cb5e Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sat, 17 Jan 2015 23:05:53 +0100 Subject: o Trying to fix issues where there is a miss match between the clicked index and the item actually clicked. --- app/src/main/java/io/trygvis/android/bt/BtPromise.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/src/main/java/io/trygvis/android') 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); -- cgit v1.2.3