Archived
1
0

227 finally fixed! Maybe...

Related Work Items: #227
This commit is contained in:
Michael Gordeev
2018-12-23 12:26:21 +03:00
parent 0b63679678
commit 18a4cdafaa
2 changed files with 15 additions and 5 deletions
+12 -2
View File
@@ -21,6 +21,8 @@ using System.Net;
using Windows.UI.Popups;
using Windows.Networking.Connectivity;
using Windows.UI.Core;
using System.Threading;
using System.Threading.Tasks;
namespace FoxTube
{
@@ -67,6 +69,12 @@ namespace FoxTube
SetTitleBar();
}
protected override void OnNavigatedTo(NavigationEventArgs e)
{
base.OnNavigatedTo(e);
content.Navigate(typeof(Home));
}
public Video GetCurrentItem()
{
try { return (videoPlaceholder.Content as VideoPage).item; }
@@ -234,11 +242,11 @@ namespace FoxTube
await dialog.ShowAsync();
}
content.Navigate(typeof(Home));
if (videoPlaceholder.Content != null)
GoToVideo((videoPlaceholder.Content as VideoPage).videoId);
nav.SelectedItem = toHome;
}
private async void feedback_Click(object sender, TappedRoutedEventArgs e)
@@ -487,6 +495,7 @@ namespace FoxTube
private void nav_SelectionChanged(NavigationView sender, NavigationViewSelectionChangedEventArgs args)
{
Debug.WriteLine("Menu selection changed");
try
{
if (s == Sender.None)
@@ -522,6 +531,7 @@ namespace FoxTube
public void content_Navigated(object sender, NavigationEventArgs e)
{
Debug.WriteLine($"Navigated to {e.SourcePageType}");
Dictionary<Type, Action> switchCase = new Dictionary<Type, Action>()
{
{ typeof(Settings), () => nav.Header = "Settings" },