Skip to content

Commit 0044a9f

Browse files
sm86opticod
authored andcommitted
App Crash while creating APKs when template name already exits (#341)
App Crash while creating APKs when template name already exits
1 parent d1755c2 commit 0044a9f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source-code/app/src/main/java/org/buildmlearn/toolkit/activity/TemplateEditor.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ private void save_apk() {
164164
String aliasName = getString(R.string.alias_name);
165165
String aliaspassword = getString(R.string.alias_password);
166166
KeyStoreDetails keyStoreDetails = new KeyStoreDetails(keyPassword, aliasName, aliaspassword);
167+
if(saveProject().equals("File already exists")){
168+
return;
169+
}
167170
SignerThread signer = new SignerThread(getApplicationContext(), selectedTemplate.getApkFilePath(), saveProject(), keyStoreDetails, selectedTemplate.getAssetsFilePath(), selectedTemplate.getAssetsFileName(TemplateEditor.this));
168171

169172
mApkGenerationDialog = new ProgressDialog(TemplateEditor.this, R.style.AppDialogTheme);

0 commit comments

Comments
 (0)