cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [3/5] git commit: forgot debugger is attached
Date Wed, 13 Nov 2013 01:56:44 GMT
forgot debugger is attached

Project: http://git-wip-us.apache.org/repos/asf/cordova-wp8/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp8/commit/5820365e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp8/tree/5820365e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp8/diff/5820365e

Branch: refs/heads/master
Commit: 5820365eefcbff2c506f926b7ab951cfc0e77740
Parents: b35dc6f
Author: ivan baktsheev <dot.and.thing@gmail.com>
Authored: Mon Oct 14 02:11:54 2013 +0400
Committer: ivan baktsheev <dot.and.thing@gmail.com>
Committed: Mon Oct 14 02:11:54 2013 +0400

----------------------------------------------------------------------
 wp7/template/App.xaml.cs | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/5820365e/wp7/template/App.xaml.cs
----------------------------------------------------------------------
diff --git a/wp7/template/App.xaml.cs b/wp7/template/App.xaml.cs
index d080c1f..493b916 100644
--- a/wp7/template/App.xaml.cs
+++ b/wp7/template/App.xaml.cs
@@ -75,8 +75,10 @@ namespace $safeprojectname$
         // This code will not execute when the application is reactivated
         private void Application_Launching(object sender, LaunchingEventArgs e)
         {
-            // Avoid screen locks while debugging.
-            PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled;
+            if (System.Diagnostics.Debugger.IsAttached) {
+                // Avoid screen locks while debugging.
+                PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled;
+            }
         }
 
         // Code to execute when the application is activated (brought to foreground)


Mime
View raw message