aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/io/trygvis/android/bt/BtPromise.java
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2015-01-27 21:23:50 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2015-01-27 21:23:50 +0100
commitc4685214d8db34166213ffa373a16af1a99401a5 (patch)
tree56e24e25119f28ff8c0a730c4d5313bc523a5c66 /app/src/main/java/io/trygvis/android/bt/BtPromise.java
parent138b49247a72890df66af9a01e1179dab72a4b71 (diff)
downloadio.trygvis.soilmoisture-android-c4685214d8db34166213ffa373a16af1a99401a5.tar.gz
io.trygvis.soilmoisture-android-c4685214d8db34166213ffa373a16af1a99401a5.tar.bz2
io.trygvis.soilmoisture-android-c4685214d8db34166213ffa373a16af1a99401a5.tar.xz
io.trygvis.soilmoisture-android-c4685214d8db34166213ffa373a16af1a99401a5.zip
o Adding 'recently seen' on BtDevice. Updated when scanning.
o Removing BtScanResult, it was never used. o Getting MainActivity to listen on device property changed so the UI is properly updated. o Adding a status bar with color to indicate if the device is available, connected or not seen.
Diffstat (limited to 'app/src/main/java/io/trygvis/android/bt/BtPromise.java')
-rw-r--r--app/src/main/java/io/trygvis/android/bt/BtPromise.java12
1 files changed, 1 insertions, 11 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 50aad13..bffdd19 100644
--- a/app/src/main/java/io/trygvis/android/bt/BtPromise.java
+++ b/app/src/main/java/io/trygvis/android/bt/BtPromise.java
@@ -371,17 +371,11 @@ public class BtPromise {
if (result instanceof Detour) {
BtPromise detour = ((Detour) result).promise;
- Log.i(TAG, "Adding detour with " + detour.actionQ.size() + " actions.");
+// Log.i(TAG, "Adding detour with " + detour.actionQ.size() + " actions.");
events.add("detour, action size=" + detour.actionQ.size() + ", " +
// "failure size=" + detour.failureQ.size() + ", " +
"finally size=" + detour.finallyQ.size());
- Log.i(TAG, "hasNext(): " + hasNext());
- Log.i(TAG, "currentAction: " + currentAction);
- if (hasNext()) {
- 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.
@@ -389,10 +383,6 @@ public class BtPromise {
actionQ.addAll(currentAction, detour.actionQ);
// failureQ.addAll(detour.failureQ);B
finallyQ.addAll(detour.finallyQ);
- Log.i(TAG, "hasNext(): " + hasNext());
- if (hasNext()) {
- Log.i(TAG, "next action: " + actionQ.get(currentAction).name);
- }
result = PromiseResult.continueDirectly();
}