Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Commit

Permalink
fix: 修复倒序浏览无法加载第二页
Browse files Browse the repository at this point in the history
  • Loading branch information
HuanCheng65 committed Jul 16, 2020
1 parent 3f3b3f3 commit d5590da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
android:name=".activities.AboutActivity"
android:configChanges="screenSize|screenLayout|orientation|smallestScreenSize|keyboardHidden"
android:windowSoftInputMode="adjustResize" />
<activity android:name=".activities.JumpActivity">
<activity android:name=".activities.DispatchActivity">
<intent-filter>
<data
android:host="tieba.baidu.com"
Expand All @@ -152,6 +152,9 @@
<data
android:host="tieba.baidu.com"
android:scheme="https" />
<data
android:host="unidispatch"
android:scheme="com.baidu.tieba" />

<action android:name="android.intent.action.VIEW" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ class ThreadActivity : BaseActivity(), View.OnClickListener {

private var preloadId = -1
private fun preload() {
PreLoader.destroy(preloadId)
if (hasMore() && !sort) {
PreLoader.destroy(preloadId)
preloadId = PreLoader.preLoad(ThreadContentLoader(tid!!, page + 1, seeLz))
}
}
Expand Down

0 comments on commit d5590da

Please sign in to comment.