TP-64287 | Sayed Owais Ali | getting coordinates just before drawing … (#144)

This commit is contained in:
Sayed Owais Ali
2024-04-18 14:17:36 +05:30
committed by GitHub
parent 49515465bd
commit 81413d1ed5
2 changed files with 5 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ plugins {
id 'maven-publish'
}
def VERSION = "1.1.5"
def VERSION = "1.1.6"
android {
namespace 'com.navi.alfred'

View File

@@ -1,6 +1,6 @@
/*
*
* * Copyright © 2023 by Navi Technologies Limited
* * Copyright © 2023-2024 by Navi Technologies Limited
* * All rights reserved. Strictly confidential
*
*/
@@ -200,8 +200,6 @@ internal suspend fun captureScreen(
}
if (canvas != null && bmp != null) {
val currentScreen = AlfredManager.currentScreen
val sensitiveCoordinates =
AlfredManager.sensitiveComposeRepository.getAllSensitiveComposableCoordinates()
val rootView = AlfredManager.sensitiveComposeRepository.getRootViewOfComposeScreen()
if (
isMaskingEnabled(screenName) ||
@@ -215,6 +213,9 @@ internal suspend fun captureScreen(
} else {
if (rootView != null) {
withContext(Dispatchers.Main) {
val sensitiveCoordinates =
AlfredManager.sensitiveComposeRepository
.getAllSensitiveComposableCoordinates()
captureComposeViewWithMasking(
canvas,
sensitiveCoordinates,