From a8209a40f912d210b9da6b44bf5199c9d267d2e7 Mon Sep 17 00:00:00 2001 From: zeapo Date: Sun, 4 Jan 2015 22:00:58 +0100 Subject: ensure that the configuration is saved --- app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java b/app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java index 637d2052..ba05b939 100644 --- a/app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java +++ b/app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java @@ -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) -- cgit v1.2.3