summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorzeapo <mohamed@zenadi.com>2014-12-18 21:51:09 +0100
committerzeapo <mohamed@zenadi.com>2015-01-04 14:53:59 +0100
commit530453025c1b0b90eb559e5480d57584b94ba661 (patch)
tree90cf6fa32bf0b02bf23ae680bb74e646c2552abe /app/src
parent6d898ddf886ce0d6617c384544bfe24d46dfe3e8 (diff)
correct a typo for saved protocol/authmode
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java16
1 files changed, 8 insertions, 8 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 551f17e3..5bb44b32 100644
--- a/app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java
+++ b/app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java
@@ -102,13 +102,6 @@ public class GitActivity extends ActionBarActivity {
}
});
-
- if (protocol.equals("ssh://")) {
- protcol_spinner.setSelection(0);
- } else {
- protcol_spinner.setSelection(1);
- }
-
// init the spinner for protocols
ArrayAdapter<CharSequence> protocol_adapter = ArrayAdapter.createFromResource(this,
R.array.clone_protocols, android.R.layout.simple_spinner_item);
@@ -145,12 +138,18 @@ public class GitActivity extends ActionBarActivity {
}
);
- if (connectionMode.equals("ssh-key")) {
+ if (protocol.equals("ssh://")) {
protcol_spinner.setSelection(0);
} else {
protcol_spinner.setSelection(1);
}
+ if (connectionMode.equals("ssh-key")) {
+ connection_mode_spinner.setSelection(0);
+ } else {
+ connection_mode_spinner.setSelection(1);
+ }
+
// init the server information
final EditText server_url = ((EditText) findViewById(R.id.server_url));
final EditText server_port = ((EditText) findViewById(R.id.server_port));
@@ -255,6 +254,7 @@ public class GitActivity extends ActionBarActivity {
findViewById(R.id.save_button).setVisibility(View.INVISIBLE);
}
+ updateURI();
break;
case REQUEST_PULL: