ensure that the configuration is saved

This commit is contained in:
zeapo 2015-01-04 22:00:58 +01:00
parent 5d11cb2d2b
commit a8209a40f9

View file

@ -465,6 +465,8 @@ public class GitActivity extends ActionBarActivity {
username = hostname.split("@")[0];
}
saveConfiguration();
if (localDir.exists() && localDir.listFiles().length != 0) {
new AlertDialog.Builder(this).
setTitle(R.string.dialog_delete_title).
@ -505,8 +507,6 @@ public class GitActivity extends ActionBarActivity {
).
show();
} else {
saveConfiguration();
try {
new CloneOperation(localDir, activity)
.setCommand(hostname)