fix: start index error in Android

This commit is contained in:
2020-05-21 09:13:34 +08:00
parent 978085ddd3
commit a193eba2ae
6 changed files with 33 additions and 5 deletions

View File

@@ -132,6 +132,12 @@ namespace Pixiview.Illust
}
SegmentTypeVisible = r18;
#if __ANDROID__
if (currentPage != 1 && Illusts == null)
{
currentPage = 1;
}
#endif
base.OnAppearing();
}

View File

@@ -27,6 +27,17 @@ namespace Pixiview.Illust
nextIndex = 0;
}
protected override void OnAppearing()
{
#if __ANDROID__
if (startIndex != -1 && Illusts == null)
{
startIndex = -1;
}
#endif
base.OnAppearing();
}
protected override bool IsAutoReload => false;
protected override ActivityIndicator LoadingIndicator => activityLoading;

View File

@@ -38,6 +38,17 @@ namespace Pixiview.Illust
nextIndex = 0;
}
protected override void OnAppearing()
{
#if __ANDROID__
if (startIndex != -1 && Illusts == null)
{
startIndex = -1;
}
#endif
base.OnAppearing();
}
protected override bool IsAutoReload => false;
protected override ActivityIndicator LoadingIndicator => activityLoading;