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/07/24 21:10:14 UTC

wp7 commit: [CB-1112] overridebackbutton

Updated Branches:
  refs/heads/master 20e5774a6 -> d04b87abb


[CB-1112] overridebackbutton


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/d04b87ab
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/tree/d04b87ab
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/diff/d04b87ab

Branch: refs/heads/master
Commit: d04b87abb3c3822ef25438e1353a1d7d2e0d6628
Parents: 20e5774
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Tue Jul 24 11:49:55 2012 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Tue Jul 24 11:49:55 2012 -0700

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


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