- Optimization, bugfixes and refactoring
- Fixed crash when local watch history reaches 87 entries (now its capacity is 200) - Added backward navigation to video page - Improved authentication process - Removed outdated logo from 'About' page and updated Twitter link
This commit is contained in:
@@ -14,7 +14,7 @@ namespace FoxTube.Pages
|
||||
/// <summary>
|
||||
/// YouTube history page
|
||||
/// </summary>
|
||||
public sealed partial class History : Page, NavigationPage
|
||||
public sealed partial class History : Page, INavigationPage
|
||||
{
|
||||
public object Parameter { get; set; } = null;
|
||||
int page = 1;
|
||||
@@ -31,10 +31,12 @@ namespace FoxTube.Pages
|
||||
Parameter = e.Parameter;
|
||||
|
||||
Initialize();
|
||||
Methods.MainPage.PageContent.LoadingPage.Close();
|
||||
}
|
||||
|
||||
public async void Initialize()
|
||||
{
|
||||
Methods.MainPage.VideoContent.LoadingPage.Close();
|
||||
try
|
||||
{
|
||||
loading.Refresh();
|
||||
@@ -71,7 +73,7 @@ namespace FoxTube.Pages
|
||||
|
||||
private void Refresh_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Methods.MainPage.GoToHistory();
|
||||
Methods.MainPage.VideoContent.Refresh();
|
||||
}
|
||||
|
||||
private async void ShowMore_Clicked()
|
||||
@@ -135,10 +137,10 @@ namespace FoxTube.Pages
|
||||
{
|
||||
websiteLoading.Error(e.GetType().ToString(), e.Message);
|
||||
Analytics.TrackEvent("History loading error", new Dictionary<string, string>()
|
||||
{
|
||||
{ "Exception", e.GetType().ToString() },
|
||||
{ "Message", e.Message }
|
||||
});
|
||||
{
|
||||
{ "Exception", e.GetType().ToString() },
|
||||
{ "Message", e.Message }
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -148,7 +150,7 @@ namespace FoxTube.Pages
|
||||
await Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
|
||||
{
|
||||
for (int k = 25 * webPage++; k < 25 * webPage && k < SecretsVault.History.Count; k++)
|
||||
websiteList.Add(new VideoCard(HistorySet.Items[k].Id, "HL"));
|
||||
websiteList.Add(new VideoCard(SecretsVault.History[k], "HL"));
|
||||
|
||||
if (websiteList.Count >= SecretsVault.History.Count)
|
||||
websiteMore.Visibility = Visibility.Collapsed;
|
||||
|
||||
Reference in New Issue
Block a user