diff options
author | Mohamed Zenadi <mohamed@zenadi.com> | 2015-06-07 14:31:05 +0200 |
---|---|---|
committer | Mohamed Zenadi <mohamed@zenadi.com> | 2015-06-07 14:33:02 +0200 |
commit | dd5c396b0dd39cc4a4a45fcc81a2b757c8088e37 (patch) | |
tree | b13062bf0a8f2d9581a2d9e3be2e709f7c10d99c | |
parent | 2022cf3d6ef874ef08bb1199f90d15e732613b61 (diff) |
save port number after save and close the activity
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java | 5 |
1 files changed, 3 insertions, 2 deletions
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(); } /** |