Skip to content

Commit

Permalink
Config page image and remove deprecated classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vi Anh committed Jan 7, 2022
1 parent c0ba261 commit 612c522
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 52 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ android {
applicationId "com.vianh.blogtruyen"
minSdkVersion 21
targetSdkVersion 31
versionCode 13
versionName "0.13"
versionCode 14
versionName "0.14"
setArchivesBaseName("blogTruyen_$versionName")

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ class HomeFragment: BaseFragment<HomeFragmentBinding>(), ItemClick<MangaItem> {
super.onScrolled(recyclerView, dx, dy)
val newState = lastDy * dy
lastDy = dy
if (newState >= 0) {
if (newState > 0) {
return
}

if (dy > 0) {
requireBinding.btnFilter.extend()
} else {
if (dy >= 0) {
requireBinding.btnFilter.shrink()
} else {
requireBinding.btnFilter.extend()
}
}
})
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class PagerItemViewHolder(parent: ViewGroup, val requestManager: RequestManager)

init {
with(binding.page) {
setMaxTileSize(maxTileSize)
setMaxTileSize(getMaxTextureSize())
setMinimumScaleType(SubsamplingScaleImageView.SCALE_TYPE_CENTER_INSIDE)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ class PageItemVH(
with(binding.page) {
setMaxTileSize(tileSize)
setMinimumScaleType(SubsamplingScaleImageView.SCALE_TYPE_CUSTOM)
setMinimumDpi(90)
setMinimumTileDpi(180)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class TransitionPageVH(val parent: ViewGroup, val viewModel: ReaderViewModel) :
description.setText(R.string.next_chapter_guide)
} else {
canProcess = false
description.text = context.getString(R.string.pull_down_guild, boundData?.chapter?.number.toString())
description.text = context.getString(R.string.pull_down_guild, boundData?.chapter?.name)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@ import com.vianh.blogtruyen.R
import com.vianh.blogtruyen.features.base.list.commonVH.ErrorItemVH
import com.vianh.blogtruyen.features.reader.Reader
import com.vianh.blogtruyen.features.reader.ReaderModel
import com.vianh.blogtruyen.utils.ItemPosScrollListener
import com.vianh.blogtruyen.utils.PreCacheLayoutManager
import com.vianh.blogtruyen.utils.SpaceDecorator
import com.vianh.blogtruyen.utils.maxTileSize
import com.vianh.blogtruyen.utils.*
import com.vianh.blogtruyen.views.PinchRecyclerView
import me.everything.android.ui.overscroll.OverScrollDecoratorHelper
import timber.log.Timber

class VerticalReader: Reader(R.layout.vertical_reader_layout), ErrorItemVH.ErrorReloadClick {

Expand Down

0 comments on commit 612c522

Please sign in to comment.