summaryrefslogtreecommitdiff
path: root/StoneIsland/plugins/cordova-plugin-splashscreen/src/wp/SplashScreen.cs
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2016-01-20 01:51:14 +0100
committerJules Laplace <jules@okfoc.us>2016-01-20 01:51:14 +0100
commit9c00e423f03a768668982061c65a6e95f77664d1 (patch)
treeaa0f645699afc34adb9191211f499f72621585b3 /StoneIsland/plugins/cordova-plugin-splashscreen/src/wp/SplashScreen.cs
parent39780c6c2d5474e2af12661935f986265c0feb0d (diff)
spacing
Diffstat (limited to 'StoneIsland/plugins/cordova-plugin-splashscreen/src/wp/SplashScreen.cs')
-rw-r--r--[-rwxr-xr-x]StoneIsland/plugins/cordova-plugin-splashscreen/src/wp/SplashScreen.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/StoneIsland/plugins/cordova-plugin-splashscreen/src/wp/SplashScreen.cs b/StoneIsland/plugins/cordova-plugin-splashscreen/src/wp/SplashScreen.cs
index 680a8058..c56d4ad6 100755..100644
--- a/StoneIsland/plugins/cordova-plugin-splashscreen/src/wp/SplashScreen.cs
+++ b/StoneIsland/plugins/cordova-plugin-splashscreen/src/wp/SplashScreen.cs
@@ -105,6 +105,7 @@ namespace WPCordovaClassLib.Cordova.Commands
XDocument configFile = XDocument.Parse(sr.ReadToEnd());
string configAutoHide = configFile.Descendants()
+ .Where(x => x.Name.LocalName == "preference")
.Where(x => (string)x.Attribute("name") == "AutoHideSplashScreen")
.Select(x => (string)x.Attribute("value"))
.FirstOrDefault();
@@ -113,6 +114,7 @@ namespace WPCordovaClassLib.Cordova.Commands
prefAutoHide = bool.TryParse(configAutoHide, out bVal) ? bVal : prefAutoHide;
string configDelay = configFile.Descendants()
+ .Where(x => x.Name.LocalName == "preference")
.Where(x => (string)x.Attribute("name") == "SplashScreenDelay")
.Select(x => (string)x.Attribute("value"))
.FirstOrDefault();
@@ -120,6 +122,7 @@ namespace WPCordovaClassLib.Cordova.Commands
prefDelay = int.TryParse(configDelay, out nVal) ? nVal : prefDelay;
string configImage = configFile.Descendants()
+ .Where(x => x.Name.LocalName == "preference")
.Where(x => (string)x.Attribute("name") == "SplashScreen")
.Select(x => (string)x.Attribute("value"))
.FirstOrDefault();