fix: start index error in Android
This commit is contained in:
@@ -132,6 +132,12 @@ namespace Pixiview.Illust
|
||||
}
|
||||
SegmentTypeVisible = r18;
|
||||
|
||||
#if __ANDROID__
|
||||
if (currentPage != 1 && Illusts == null)
|
||||
{
|
||||
currentPage = 1;
|
||||
}
|
||||
#endif
|
||||
base.OnAppearing();
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
|
||||
|
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user