TP-64287 | Sayed Owais Ali | getting coordinates just before drawing … (#144)
This commit is contained in:
@@ -6,7 +6,7 @@ plugins {
|
||||
id 'maven-publish'
|
||||
}
|
||||
|
||||
def VERSION = "1.1.5"
|
||||
def VERSION = "1.1.6"
|
||||
|
||||
android {
|
||||
namespace 'com.navi.alfred'
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user