From e50c153d475fd1a4957b6a7bc4e53d90b43f0f19 Mon Sep 17 00:00:00 2001 From: Sarah Rietkerk Date: Mon, 28 Oct 2024 13:50:09 -0700 Subject: [PATCH] add check for android as well --- pxtblocks/layout.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pxtblocks/layout.ts b/pxtblocks/layout.ts index c80e62b03385..e374989b5c6f 100644 --- a/pxtblocks/layout.ts +++ b/pxtblocks/layout.ts @@ -227,7 +227,8 @@ export function flow(ws: Blockly.WorkspaceSvg, opts?: FlowOptions) { export function screenshotEnabled(): boolean { const disableForMacIos = pxt.appTarget.appTheme.disableFileAccessinMaciOs && (pxt.BrowserUtils.isMac() || pxt.BrowserUtils.isIOS()); - return !disableForMacIos && !pxt.BrowserUtils.isIE(); + const disableForAndriod = pxt.appTarget.appTheme.disableFileAccessinAndroid && pxt.BrowserUtils.isAndroid(); + return !disableForMacIos && !pxt.BrowserUtils.isIE() && !disableForAndriod; } export function screenshotAsync(ws: Blockly.WorkspaceSvg, pixelDensity?: number, encodeBlocks?: boolean): Promise {