TP-12345 | Refactor | Publishing | Spotless (#152)

This commit is contained in:
Shivam Goyal
2024-05-05 08:40:19 -07:00
committed by GitHub
parent 5a2c261fd1
commit ef45997147
33 changed files with 323 additions and 204 deletions

View File

@@ -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