Fixed some minor bugs

- Backup before implementing terminal
- Fixed shebang issue in Gradle executable
- Clean all binary files in JDK (earlier it only cleaned binaries in bin directory)
- If the CodeEditor is not editable, do not show cut and paste options in text action mode
- Some more changes
This commit is contained in:
Akash Yadav
2021-08-25 21:07:19 +05:30
parent a8d79291e3
commit b69fa9d401
17 changed files with 135 additions and 41 deletions
@@ -102,7 +102,7 @@ public class DownloadActivity extends StudioActivity {
}
}
sb.append("rm -rf '" + getApp().getToolsDownloadDirectory().getAbsolutePath() + "' && ");
sb.append("echo 'Cleaning unsupported flags in binaries...' && $BUSYBOX find $JAVA_HOME/bin -type f -exec androidide-cleaner {} \\; && ");
sb.append("echo 'Cleaning unsupported flags in binaries...' && $BUSYBOX find $JAVA_HOME -type f -exec androidide-cleaner {} \\; && ");
sb.append("echo " + DONE);
server.bgAppend(sb.toString());
}
@@ -115,6 +115,8 @@ public class DownloadActivity extends StudioActivity {
if(line.contains(DONE)) {
getApp().getPrefManager().putBoolean(PreferenceManager.KEY_FRAMEWORK_INSTALLED, true);
showRestartNeeded();
if(getProgressSheet().isShowing())
getProgressSheet().dismiss();
}
});
}