mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05: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
2 changed files with 2 additions and 2 deletions
|
@ -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 a new issue