You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2012/04/10 00:40:30 UTC

[18/34] wp7 commit: tweaked how native side picks up on non-command-based exec calls (specifically for back button overriding)

tweaked how native side picks up on non-command-based exec calls (specifically for back button overriding)


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

Branch: refs/heads/master
Commit: fb302faaeed70754bd7b45ce64c22527b0ec5be7
Parents: 8019b10
Author: filmaj <ma...@gmail.com>
Authored: Sun Apr 8 19:48:46 2012 -0700
Committer: filmaj <ma...@gmail.com>
Committed: Sun Apr 8 19:48:46 2012 -0700

----------------------------------------------------------------------
 framework/CordovaView.xaml.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/fb302faa/framework/CordovaView.xaml.cs
----------------------------------------------------------------------
diff --git a/framework/CordovaView.xaml.cs b/framework/CordovaView.xaml.cs
index 215db1f..d172a27 100644
--- a/framework/CordovaView.xaml.cs
+++ b/framework/CordovaView.xaml.cs
@@ -415,8 +415,8 @@ namespace WP7CordovaClassLib
                 switch (commandCallParams.Action.ToLower())
                 {
                     case "overridebackbutton":
-                        string[] args = Cordova.JSON.JsonHelper.Deserialize<string[]>(commandCallParams.Args);
-                        this.OverrideBackButton = (args != null && args.Length > 0 && args[0] == "true");
+                        string args = commandCallParams.Args;
+                        this.OverrideBackButton = (args != null && args.Length > 0 && args == "true");
                         break;
                 }
             }