Skip to content

Commit

Permalink
Fix violent page fetching with safe mode or strict blacklist
Browse files Browse the repository at this point in the history
  • Loading branch information
HeroBrine1st committed Jan 8, 2024
1 parent e505fd6 commit 2a250ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ android {
// Application properties
resValue("string", "deep_link_host", "e621.net")
buildConfigField("int", "PAGER_PAGE_SIZE", "500")
buildConfigField("int", "PAGER_PREFETCH_DISTANCE", "50")
// Replaces all underscores in tags with spaces
buildConfigField("boolean", "HIDE_UNDERSCORES_FROM_USER", "true")
stringBuildConfigField("DATABASE_NAME", "DATABASE")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ class PostListingComponent(
private val pager = Pager(
PagingConfig(
pageSize = BuildConfig.PAGER_PAGE_SIZE,
prefetchDistance = BuildConfig.PAGER_PREFETCH_DISTANCE,
initialLoadSize = BuildConfig.PAGER_PAGE_SIZE
)
) {
Expand Down

0 comments on commit 2a250ff

Please sign in to comment.