TP-66741 | Owais | checking for screen name change while disabling re… (#164)

This commit is contained in:
Sayed Owais Ali
2024-05-14 19:08:46 +05:30
committed by GitHub
parent b38c20b300
commit 2d9338ec19

View File

@@ -194,7 +194,12 @@ internal suspend fun captureScreen(
bmp: Bitmap? = null,
moduleName: String? = null
): Bitmap? {
if (isScreenDisabled(screenName, moduleName) || canvas == null || bmp == null) {
if (
isScreenDisabled(screenName, moduleName) ||
isScreenDisabled(AlfredManager.currentScreenName, moduleName) ||
canvas == null ||
bmp == null
) {
return null
}