mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-11 00:07:48 +01:00
Now using subsampling 3.6.0
This commit is contained in:
parent
9bcde69ee0
commit
2032ba3ba3
3 changed files with 3 additions and 3 deletions
|
@ -98,7 +98,7 @@ android {
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
||||||
// Modified dependencies
|
// Modified dependencies
|
||||||
compile 'com.github.inorichi:subsampling-scale-image-view:c4db85c'
|
compile 'com.github.inorichi:subsampling-scale-image-view:e8b72cb'
|
||||||
|
|
||||||
// Android support library
|
// Android support library
|
||||||
final support_library_version = '25.0.1'
|
final support_library_version = '25.0.1'
|
||||||
|
|
|
@ -61,7 +61,7 @@ class PageView @JvmOverloads constructor(context: Context, attrs: AttributeSet?
|
||||||
}
|
}
|
||||||
|
|
||||||
with(image_view) {
|
with(image_view) {
|
||||||
setMaxBitmapDimensions((reader.activity as ReaderActivity).maxBitmapSize)
|
setMaxTileSize((reader.activity as ReaderActivity).maxBitmapSize)
|
||||||
setDoubleTapZoomStyle(SubsamplingScaleImageView.ZOOM_FOCUS_FIXED)
|
setDoubleTapZoomStyle(SubsamplingScaleImageView.ZOOM_FOCUS_FIXED)
|
||||||
setPanLimit(SubsamplingScaleImageView.PAN_LIMIT_INSIDE)
|
setPanLimit(SubsamplingScaleImageView.PAN_LIMIT_INSIDE)
|
||||||
setMinimumScaleType(reader.scaleType)
|
setMinimumScaleType(reader.scaleType)
|
||||||
|
|
|
@ -54,7 +54,7 @@ class WebtoonHolder(private val view: View, private val adapter: WebtoonAdapter)
|
||||||
|
|
||||||
init {
|
init {
|
||||||
with(view.image_view) {
|
with(view.image_view) {
|
||||||
setMaxBitmapDimensions(readerActivity.maxBitmapSize)
|
setMaxTileSize(readerActivity.maxBitmapSize)
|
||||||
setDoubleTapZoomStyle(SubsamplingScaleImageView.ZOOM_FOCUS_FIXED)
|
setDoubleTapZoomStyle(SubsamplingScaleImageView.ZOOM_FOCUS_FIXED)
|
||||||
setPanLimit(SubsamplingScaleImageView.PAN_LIMIT_INSIDE)
|
setPanLimit(SubsamplingScaleImageView.PAN_LIMIT_INSIDE)
|
||||||
setMinimumScaleType(SubsamplingScaleImageView.SCALE_TYPE_FIT_WIDTH)
|
setMinimumScaleType(SubsamplingScaleImageView.SCALE_TYPE_FIT_WIDTH)
|
||||||
|
|
Loading…
Reference in a new issue