mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-05 07:25:08 +01:00
Long strip split fixes (#7875)
* Fix image width in `splitStrip` * Fix reader switch isn't in md3
This commit is contained in:
parent
9c49a5ed22
commit
1948d55d5d
@ -282,7 +282,7 @@ object ImageUtil {
|
||||
|
||||
val options = extractImageOptions(imageStream).apply { inJustDecodeBounds = false }
|
||||
|
||||
val region = Rect(0, splitData.topOffset, splitData.outputImageHeight, splitData.bottomOffset)
|
||||
val region = Rect(0, splitData.topOffset, options.outWidth, splitData.bottomOffset)
|
||||
|
||||
try {
|
||||
val splitBitmap = bitmapRegionDecoder.decodeRegion(region, options)
|
||||
|
@ -66,7 +66,7 @@
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<com.google.android.material.switchmaterial.SwitchMaterial
|
||||
<com.google.android.material.materialswitch.MaterialSwitch
|
||||
android:id="@+id/long_strip_split"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
Loading…
Reference in New Issue
Block a user