From 5ee95a95a6a6f8a9f385907f388ce08810726248 Mon Sep 17 00:00:00 2001 From: Michael Gordeev Date: Sun, 6 May 2018 19:45:23 +0300 Subject: [PATCH] Settings keys fix --- FoxTube/MainPage.xaml.cs | 12 ++++++++++-- FoxTube/Video.xaml.cs | 6 ++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/FoxTube/MainPage.xaml.cs b/FoxTube/MainPage.xaml.cs index fe3eab4..17a0da0 100644 --- a/FoxTube/MainPage.xaml.cs +++ b/FoxTube/MainPage.xaml.cs @@ -43,20 +43,28 @@ namespace FoxTube public MainPage() { this.InitializeComponent(); + if(settings.Values["language"] == null) - { settings.Values.Add("language", 0); + if (settings.Values["quality"] == null) settings.Values.Add("quality", 0); + if (settings.Values["newVideoNotification"] == null) settings.Values.Add("newVideoNotification", true); + if (settings.Values["newCommentNotification"] == null) settings.Values.Add("newCommentNotification", true); + if (settings.Values["newPostNotification"] == null) settings.Values.Add("newPostNotification", true); + if (settings.Values["newmessagesNotification"] == null) settings.Values.Add("newmessagesNotification", true); + if (settings.Values["moblieWarning"] == null) settings.Values.Add("moblieWarning", false); + if (settings.Values["videoAutoplay"] == null) settings.Values.Add("videoAutoplay", true); + if (settings.Values["volume"] == null) settings.Values.Add("volume", 100); - } + content.Navigate(typeof(Home)); } diff --git a/FoxTube/Video.xaml.cs b/FoxTube/Video.xaml.cs index 55d8d95..065815c 100644 --- a/FoxTube/Video.xaml.cs +++ b/FoxTube/Video.xaml.cs @@ -26,5 +26,11 @@ namespace FoxTube { this.InitializeComponent(); } + + public void Load(string url, string title, + string author, string avatarUrl) + { + + } } }