From db9d603881edf764b59a490b59935a10f016ade5 Mon Sep 17 00:00:00 2001 From: Joe Bowser Date: Tue, 15 Jun 2010 10:43:28 -0700 Subject: [PATCH] Fixing equals. However, perhaps object equivalence is better, because it will be the same object if we attempt to go back and fail, where as we can go back and forth numerous times in a web history --- framework/src/com/phonegap/DroidGap.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/src/com/phonegap/DroidGap.java b/framework/src/com/phonegap/DroidGap.java index bb548fdf..4f78a27c 100644 --- a/framework/src/com/phonegap/DroidGap.java +++ b/framework/src/com/phonegap/DroidGap.java @@ -341,7 +341,7 @@ public class DroidGap extends Activity { { String testUrl = appView.getUrl(); appView.goBack(); - if(appView.getUrl() == testUrl) + if(appView.getUrl().equals(testUrl)) { return super.onKeyDown(keyCode, event); }