correct a typo for saved protocol/authmode
This commit is contained in:
parent
6d898ddf88
commit
530453025c
1 changed files with 8 additions and 8 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue