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 2015/03/10 23:04:45 UTC
cordova-plugin-splashscreen git commit: [wp8] oops,
Added back config parse result checks
Repository: cordova-plugin-splashscreen
Updated Branches:
refs/heads/master 6b1e72c63 -> 5afde1c62
[wp8] oops, Added back config parse result checks
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/commit/5afde1c6
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/tree/5afde1c6
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/diff/5afde1c6
Branch: refs/heads/master
Commit: 5afde1c62f27c86b9e28ed44f237b075198ad831
Parents: 6b1e72c
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Tue Mar 10 15:03:39 2015 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Tue Mar 10 15:03:39 2015 -0700
----------------------------------------------------------------------
src/wp/SplashScreen.cs | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/blob/5afde1c6/src/wp/SplashScreen.cs
----------------------------------------------------------------------
diff --git a/src/wp/SplashScreen.cs b/src/wp/SplashScreen.cs
index e8ef4c0..feb4038 100644
--- a/src/wp/SplashScreen.cs
+++ b/src/wp/SplashScreen.cs
@@ -109,14 +109,16 @@ namespace WPCordovaClassLib.Cordova.Commands
.Where(x => (string)x.Attribute("name") == "AutoHideSplashScreen")
.Select(x => (string)x.Attribute("value"))
.FirstOrDefault();
- bool.TryParse(configAutoHide, out prefAutoHide);
+ bool bVal;
+ prefAutoHide = bool.TryParse(configAutoHide, out bVal) ? bVal : prefAutoHide;
string configDelay = configFile.Descendants()
.Where(x => (string)x.Attribute("name") == "SplashScreenDelay")
.Select(x => (string)x.Attribute("value"))
.FirstOrDefault();
- int.TryParse(configDelay, out prefDelay);
+ int nVal;
+ prefDelay = int.TryParse(configDelay, out nVal) ? nVal : prefDelay;
string configImage = configFile.Descendants()
.Where(x => (string)x.Attribute("name") == "SplashScreen")
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org