diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 254bdf4e..8b47b813 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -138,7 +138,7 @@ android:name=".activities.AboutActivity" android:configChanges="screenSize|screenLayout|orientation|smallestScreenSize|keyboardHidden" android:windowSoftInputMode="adjustResize" /> - + + diff --git a/app/src/main/java/com/huanchengfly/tieba/post/ThreadActivity.kt b/app/src/main/java/com/huanchengfly/tieba/post/ThreadActivity.kt index abf13b87..7a964267 100644 --- a/app/src/main/java/com/huanchengfly/tieba/post/ThreadActivity.kt +++ b/app/src/main/java/com/huanchengfly/tieba/post/ThreadActivity.kt @@ -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)) } }