From 94d59f1dbaa5e528a329a41b5eba34b3a6e421d1 Mon Sep 17 00:00:00 2001 From: Michael Gordeev Date: Fri, 24 Aug 2018 23:30:50 +0300 Subject: [PATCH] bug fixes --- FoxTube/Controls/CommentCard.xaml.cs | 1 + FoxTube/Controls/PlaylistCard.xaml.cs | 2 +- FoxTube/Controls/VideoPlayer.xaml | 5 ++- FoxTube/Controls/VideoPlayer.xaml.cs | 5 +++ FoxTube/Pages/ChannelPage.xaml.cs | 1 - FoxTube/Pages/CommentsPage.xaml.cs | 1 + FoxTube/Pages/LoadingPage.xaml.cs | 11 +++++ FoxTube/Pages/MainPage.xaml.cs | 62 ++++++++++++++++----------- FoxTube/Pages/VideoPage.xaml.cs | 2 +- 9 files changed, 59 insertions(+), 31 deletions(-) diff --git a/FoxTube/Controls/CommentCard.xaml.cs b/FoxTube/Controls/CommentCard.xaml.cs index a98aafb..00e8660 100644 --- a/FoxTube/Controls/CommentCard.xaml.cs +++ b/FoxTube/Controls/CommentCard.xaml.cs @@ -144,6 +144,7 @@ namespace FoxTube.Controls request.ParentId = item.Id; request.MaxResults = 10; request.PageToken = NextPageToken; + request.TextFormat = CommentsResource.ListRequest.TextFormatEnum.PlainText; var response = await request.ExecuteAsync(); foreach (Comment c in response.Items) diff --git a/FoxTube/Controls/PlaylistCard.xaml.cs b/FoxTube/Controls/PlaylistCard.xaml.cs index b4d3bde..e893c26 100644 --- a/FoxTube/Controls/PlaylistCard.xaml.cs +++ b/FoxTube/Controls/PlaylistCard.xaml.cs @@ -46,7 +46,7 @@ namespace FoxTube.Controls title.Text = item.Snippet.Title; channelName.Text = item.Snippet.ChannelTitle; counter.Text = item.ContentDetails.ItemCount.ToString(); - date.Text = item.Snippet.PublishedAt.ToString(); + date.Text = Methods.GetAgo(item.Snippet.PublishedAt.Value); ChannelsResource.ListRequest r = SecretsVault.NoAuthService.Channels.List("snippet"); r.Id = item.Snippet.ChannelId; diff --git a/FoxTube/Controls/VideoPlayer.xaml b/FoxTube/Controls/VideoPlayer.xaml index 0f2f6b9..d3dbe8e 100644 --- a/FoxTube/Controls/VideoPlayer.xaml +++ b/FoxTube/Controls/VideoPlayer.xaml @@ -9,13 +9,12 @@ mc:Ignorable="d" d:DesignHeight="1080" d:DesignWidth="1920" - Tapped="UserControl_Tapped" DoubleTapped="UserControl_DoubleTapped" PointerMoved="UserControl_PointerMoved" PointerExited="UserControl_PointerExited" PointerEntered="UserControl_PointerEntered"> - + @@ -42,6 +41,8 @@ + +