diff options
author | Mohamed Zenadi <mohamed@zenadi.com> | 2015-05-09 13:54:22 +0200 |
---|---|---|
committer | Mohamed Zenadi <mohamed@zenadi.com> | 2015-05-09 13:54:22 +0200 |
commit | 31ef33091e5e401417b795abb9c703bc7c581345 (patch) | |
tree | d5fbdd27f339f9223386aeb3e03253178424559d /app/src/main/java | |
parent | 9ee99fc2266be570b259a1774edbc2756e2803b1 (diff) |
Fix #82, select user/pwd auth for https connection
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java | 14 |
1 files changed, 7 insertions, 7 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 76599c3b..9e8e97c5 100644 --- a/app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java +++ b/app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java @@ -118,6 +118,13 @@ public class GitActivity extends ActionBarActivity { // select ssh-key auth mode as default and enable the spinner in case it was disabled connection_mode_spinner.setSelection(0); connection_mode_spinner.setEnabled(true); + + // however, if we have some saved that, that's more important! + if (connectionMode.equals("ssh-key")) { + connection_mode_spinner.setSelection(0); + } else { + connection_mode_spinner.setSelection(1); + } } else { ((EditText) findViewById(R.id.clone_uri)).setHint("hostname/path"); @@ -127,13 +134,6 @@ public class GitActivity extends ActionBarActivity { connection_mode_spinner.setSelection(1); connection_mode_spinner.setEnabled(false); } - - // however, if we have some saved that, that's more important! - if (connectionMode.equals("ssh-key")) { - connection_mode_spinner.setSelection(0); - } else { - connection_mode_spinner.setSelection(1); - } } @Override |