fix: 修复倒序浏览无法加载第二页
This commit is contained in:
parent
3f3b3f3f73
commit
d5590dabe0
|
|
@ -138,7 +138,7 @@
|
||||||
android:name=".activities.AboutActivity"
|
android:name=".activities.AboutActivity"
|
||||||
android:configChanges="screenSize|screenLayout|orientation|smallestScreenSize|keyboardHidden"
|
android:configChanges="screenSize|screenLayout|orientation|smallestScreenSize|keyboardHidden"
|
||||||
android:windowSoftInputMode="adjustResize" />
|
android:windowSoftInputMode="adjustResize" />
|
||||||
<activity android:name=".activities.JumpActivity">
|
<activity android:name=".activities.DispatchActivity">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<data
|
<data
|
||||||
android:host="tieba.baidu.com"
|
android:host="tieba.baidu.com"
|
||||||
|
|
@ -152,6 +152,9 @@
|
||||||
<data
|
<data
|
||||||
android:host="tieba.baidu.com"
|
android:host="tieba.baidu.com"
|
||||||
android:scheme="https" />
|
android:scheme="https" />
|
||||||
|
<data
|
||||||
|
android:host="unidispatch"
|
||||||
|
android:scheme="com.baidu.tieba" />
|
||||||
|
|
||||||
<action android:name="android.intent.action.VIEW" />
|
<action android:name="android.intent.action.VIEW" />
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -314,8 +314,8 @@ class ThreadActivity : BaseActivity(), View.OnClickListener {
|
||||||
|
|
||||||
private var preloadId = -1
|
private var preloadId = -1
|
||||||
private fun preload() {
|
private fun preload() {
|
||||||
if (hasMore() && !sort) {
|
|
||||||
PreLoader.destroy(preloadId)
|
PreLoader.destroy(preloadId)
|
||||||
|
if (hasMore() && !sort) {
|
||||||
preloadId = PreLoader.preLoad(ThreadContentLoader(tid!!, page + 1, seeLz))
|
preloadId = PreLoader.preLoad(ThreadContentLoader(tid!!, page + 1, seeLz))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue