save port number after save and close the activity

This commit is contained in:
Mohamed Zenadi 2015-06-07 14:31:05 +02:00
parent 2022cf3d6e
commit dd5c396b0d

View File

@ -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();
}
/**