From 5eb554e008f8417fb1633c49e4e65f9f17b77fb1 Mon Sep 17 00:00:00 2001 From: macdonst Date: Mon, 2 Jul 2012 16:37:09 -0400 Subject: [PATCH] CB-993: Android plugin problems upgrading to 1.9.0 The DroidGap.getContext() method causes an infinite loop and eventually a stack overflow error. --- framework/src/org/apache/cordova/DroidGap.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/src/org/apache/cordova/DroidGap.java b/framework/src/org/apache/cordova/DroidGap.java index a1b42d10..1a23f226 100755 --- a/framework/src/org/apache/cordova/DroidGap.java +++ b/framework/src/org/apache/cordova/DroidGap.java @@ -779,7 +779,7 @@ public class DroidGap extends Activity implements CordovaInterface { super.finish(); } - + /** * Launch an activity for which you would like a result when it finished. When this activity exits, * your onActivityResult() method will be called. @@ -941,7 +941,7 @@ public class DroidGap extends Activity implements CordovaInterface { */ public Context getContext() { LOG.d(TAG, "This will be deprecated December 2012"); - return this.getContext(); + return this; } /**