mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	Avoid some crashes
This commit is contained in:
		| @@ -36,7 +36,7 @@ data class DownloadHeaderItem( | ||||
|     override fun equals(other: Any?): Boolean { | ||||
|         if (this === other) return true | ||||
|         if (other is DownloadHeaderItem) { | ||||
|             return name == other.name | ||||
|             return id == other.id && name == other.name | ||||
|         } | ||||
|         return false | ||||
|     } | ||||
|   | ||||
| @@ -110,7 +110,7 @@ open class ReaderPageImageView @JvmOverloads constructor( | ||||
|  | ||||
|     private fun SubsamplingScaleImageView.landscapeZoom(forward: Boolean) { | ||||
|         if (config != null && config!!.landscapeZoom && config!!.minimumScaleType == SCALE_TYPE_CENTER_INSIDE && sWidth > sHeight && scale == minScale) { | ||||
|             handler.postDelayed({ | ||||
|             handler?.postDelayed({ | ||||
|                 val point = when (config!!.zoomStartPosition) { | ||||
|                     ZoomStartPosition.LEFT -> if (forward) PointF(0F, 0F) else PointF(sWidth.toFloat(), 0F) | ||||
|                     ZoomStartPosition.RIGHT -> if (forward) PointF(sWidth.toFloat(), 0F) else PointF(0F, 0F) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user