You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bc...@apache.org on 2012/05/15 06:38:00 UTC

[1/15] android commit: Update for getActivity().

Updated Branches:
  refs/heads/CordovaWebView dd0b6b1e3 -> 441785b51


Update for getActivity().


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/commit/441785b5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/tree/441785b5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/diff/441785b5

Branch: refs/heads/CordovaWebView
Commit: 441785b51deb59362f844c22bebe4ebf37c6d755
Parents: 0d32115
Author: Bryce Curtis <cu...@gmail.com>
Authored: Mon May 14 23:25:10 2012 -0500
Committer: Bryce Curtis <cu...@gmail.com>
Committed: Mon May 14 23:25:10 2012 -0500

----------------------------------------------------------------------
 .../org/apache/cordova/test/ActivityPlugin.java    |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/441785b5/test/src/org/apache/cordova/test/ActivityPlugin.java
----------------------------------------------------------------------
diff --git a/test/src/org/apache/cordova/test/ActivityPlugin.java b/test/src/org/apache/cordova/test/ActivityPlugin.java
index 019d2ec..553ef2a 100755
--- a/test/src/org/apache/cordova/test/ActivityPlugin.java
+++ b/test/src/org/apache/cordova/test/ActivityPlugin.java
@@ -69,9 +69,9 @@ public class ActivityPlugin extends Plugin {
 
     public void startActivity(String className) {
         try {
-            Intent intent = new Intent().setClass(this.ctx, Class.forName(className));
+            Intent intent = new Intent().setClass(this.ctx.getActivity(), Class.forName(className));
             LOG.d(TAG, "Starting activity %s", className);
-            this.ctx.startActivity(intent);
+            this.ctx.getActivity().startActivity(intent);
         } catch (ClassNotFoundException e) {
             e.printStackTrace();
             LOG.e(TAG, "Error starting activity %s", className);