fix: start index error in Android
This commit is contained in:
parent
978085ddd3
commit
a193eba2ae
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.0.520" package="org.tsanie.pixiview" android:versionCode="9">
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.0.521" package="org.tsanie.pixiview" android:versionCode="10">
|
||||||
<uses-sdk android:minSdkVersion="25" android:targetSdkVersion="28" />
|
<uses-sdk android:minSdkVersion="25" android:targetSdkVersion="28" />
|
||||||
<application android:label="Pixiview" android:icon="@mipmap/icon" android:roundIcon="@mipmap/icon_round"></application>
|
<application android:label="Pixiview" android:icon="@mipmap/icon" android:roundIcon="@mipmap/icon_round"></application>
|
||||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||||
|
@ -29,8 +29,8 @@
|
|||||||
<string>com.apple.share-services</string>
|
<string>com.apple.share-services</string>
|
||||||
</dict>
|
</dict>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>1.0.520</string>
|
<string>1.0.521</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>9</string>
|
<string>10</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
@ -79,8 +79,8 @@
|
|||||||
</dict>
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>1.0.520</string>
|
<string>1.0.521</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>9</string>
|
<string>10</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
@ -132,6 +132,12 @@ namespace Pixiview.Illust
|
|||||||
}
|
}
|
||||||
SegmentTypeVisible = r18;
|
SegmentTypeVisible = r18;
|
||||||
|
|
||||||
|
#if __ANDROID__
|
||||||
|
if (currentPage != 1 && Illusts == null)
|
||||||
|
{
|
||||||
|
currentPage = 1;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
base.OnAppearing();
|
base.OnAppearing();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,6 +27,17 @@ namespace Pixiview.Illust
|
|||||||
nextIndex = 0;
|
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 bool IsAutoReload => false;
|
||||||
protected override ActivityIndicator LoadingIndicator => activityLoading;
|
protected override ActivityIndicator LoadingIndicator => activityLoading;
|
||||||
|
|
||||||
|
@ -38,6 +38,17 @@ namespace Pixiview.Illust
|
|||||||
nextIndex = 0;
|
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 bool IsAutoReload => false;
|
||||||
protected override ActivityIndicator LoadingIndicator => activityLoading;
|
protected override ActivityIndicator LoadingIndicator => activityLoading;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user