From dd5c396b0dd39cc4a4a45fcc81a2b757c8088e37 Mon Sep 17 00:00:00 2001 From: Mohamed Zenadi Date: Sun, 7 Jun 2015 14:31:05 +0200 Subject: save port number after save and close the activity --- app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java | 5 +++-- 1 file changed, 3 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 2d8f2e5a..54e192cc 100644 --- a/app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java +++ b/app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java @@ -413,8 +413,8 @@ public class GitActivity extends AppCompatActivity { editor.putString("git_remote_username", ((EditText) findViewById(R.id.server_user)).getText().toString()); editor.putString("git_remote_protocol", protocol); editor.putString("git_remote_auth", connectionMode); - editor.putString("git_remote_port", port); - editor.commit(); + editor.putString("git_remote_port", ((EditText) findViewById(R.id.server_port)).getText().toString()); + editor.apply(); } /** @@ -425,6 +425,7 @@ public class GitActivity extends AppCompatActivity { public void saveConfiguration(View view) { saveConfiguration(); PasswordRepository.addRemote("origin", ((EditText) findViewById(R.id.clone_uri)).getText().toString(), true); + finish(); } /** -- cgit v1.2.3