fix: Fix for inset of SENSOR_INFO_ACTIVE_ARRAY_SIZE for Android < 11 (#2306)
fix for inset of SENSOR_INFO_ACTIVE_ARRAY_SIZE Co-authored-by: David Gruseck <david.gruseck@actinate.com>
This commit is contained in:
		| @@ -5,9 +5,9 @@ import android.graphics.Rect | ||||
| fun Rect.zoomed(zoomFactor: Float): Rect { | ||||
|   val dx = (width() / zoomFactor / 2).toInt() | ||||
|   val dy = (height() / zoomFactor / 2).toInt() | ||||
|   val left = centerX() - dx | ||||
|   val top = centerY() - dy | ||||
|   val right = centerX() + dx | ||||
|   val bottom = centerY() + dy | ||||
|   val left = centerX() - this.left - dx | ||||
|   val top = centerY() - this.top - dy | ||||
|   val right = centerX() - this.left + dx | ||||
|   val bottom = centerY() - this.top + dy | ||||
|   return Rect(left, top, right, bottom) | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user