Commit c98261fe authored by Evan W. Patton's avatar Evan W. Patton Committed by Jeffrey Schiller

Fix buggy ask for write permissions when not in REPL (#1579)

Change-Id: I4a4b0af5365581cf4663f66181991ca3c747146e
parent d75ffca7
......@@ -360,8 +360,8 @@ public class Form extends AppInventorCompatActivity
// process (onCreateFinish2). Sigh.
boolean needSdcardWrite = doesAppDeclarePermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) &&
// Don't ask permission if we are REPL and using the splash screen
!(isRepl() && AppInventorFeatures.doCompanionSplashScreen());
// Only ask permission if we are in the REPL and not using the splash screen
isRepl() && !AppInventorFeatures.doCompanionSplashScreen();
if (needSdcardWrite) {
askPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE,
new PermissionResultHandler() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment