TP-12345 | Refactor | Publishing | Spotless (#152)
This commit is contained in:
@@ -212,10 +212,7 @@ internal suspend fun captureScreen(
|
||||
} else {
|
||||
if (rootView != null) {
|
||||
withContext(Dispatchers.Main) {
|
||||
captureComposeViewWithMasking(
|
||||
canvas,
|
||||
rootView
|
||||
)
|
||||
captureComposeViewWithMasking(canvas, rootView)
|
||||
}
|
||||
} else {
|
||||
withContext(Dispatchers.Main) { v.draw(canvas) }
|
||||
@@ -319,14 +316,10 @@ internal suspend fun captureBottomSheet(
|
||||
}
|
||||
}
|
||||
|
||||
internal fun captureComposeViewWithMasking(
|
||||
canvas: Canvas,
|
||||
rootView: View
|
||||
) {
|
||||
internal fun captureComposeViewWithMasking(canvas: Canvas, rootView: View) {
|
||||
rootView.draw(canvas)
|
||||
|
||||
val sensitiveCoordinates =
|
||||
AlfredManager.sensitiveComposeRepository.sensitiveCoordinates
|
||||
val sensitiveCoordinates = AlfredManager.sensitiveComposeRepository.sensitiveCoordinates
|
||||
|
||||
val paint = Paint()
|
||||
paint.color = Color.BLACK
|
||||
|
||||
Reference in New Issue
Block a user