From 5bdc81e84d570cabd11db22b16c47730b7dcd1b4 Mon Sep 17 00:00:00 2001 From: Jos Shepherd Date: Wed, 13 Oct 2010 14:22:56 +0800 Subject: [PATCH] Fix to new Android 1.6 storage code - callback wasn't being called for empty result sets. --- framework/src/com/phonegap/Storage.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/framework/src/com/phonegap/Storage.java b/framework/src/com/phonegap/Storage.java index 924b5b55..0d764f9c 100755 --- a/framework/src/com/phonegap/Storage.java +++ b/framework/src/com/phonegap/Storage.java @@ -178,9 +178,10 @@ public class Storage extends Plugin { } while (cur.moveToNext()); - // Let JavaScript know that there are no more rows - this.sendJavascript("droiddb.completeQuery('" + tx_id + "');"); } + // Let JavaScript know that there are no more rows + this.sendJavascript("droiddb.completeQuery('" + tx_id + "');"); + } } \ No newline at end of file