incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bows...@apache.org
Subject [43/50] [abbrv] android commit: Update for getActivity().
Date Thu, 07 Jun 2012 20:20:55 GMT
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/master
Commit: 441785b51deb59362f844c22bebe4ebf37c6d755
Parents: 0d32115
Author: Bryce Curtis <curtis.bryce@gmail.com>
Authored: Mon May 14 23:25:10 2012 -0500
Committer: Bryce Curtis <curtis.bryce@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);


Mime
View raw message