mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-31 14:25:28 +00:00
Fix #82, select user/pwd auth for https connection
This commit is contained in:
@@ -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
|
// select ssh-key auth mode as default and enable the spinner in case it was disabled
|
||||||
connection_mode_spinner.setSelection(0);
|
connection_mode_spinner.setSelection(0);
|
||||||
connection_mode_spinner.setEnabled(true);
|
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 {
|
} else {
|
||||||
((EditText) findViewById(R.id.clone_uri)).setHint("hostname/path");
|
((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.setSelection(1);
|
||||||
connection_mode_spinner.setEnabled(false);
|
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
|
@Override
|
||||||
|
Reference in New Issue
Block a user