comparison src/com/five_ten_sg/connectbot/HostEditorActivity.java @ 89:bb27518ac2e9

convert ctrl keys to virtual keys; use proper android home directory
author Carl Byington <carl@five-ten-sg.com>
date Mon, 16 Jun 2014 12:31:31 -0700
parents 1c22e6a7efff
children 77ac18bc1b2f
comparison
equal deleted inserted replaced
88:1c22e6a7efff 89:bb27518ac2e9
263 this.addPreferencesFromResource(R.xml.host_prefs); 263 this.addPreferencesFromResource(R.xml.host_prefs);
264 264
265 // disable all preferences that are not applicable to this host 265 // disable all preferences that are not applicable to this host
266 findPreference(HostDatabase.FIELD_HOST_PUBKEYID).setEnabled(enableSSHFeatures); 266 findPreference(HostDatabase.FIELD_HOST_PUBKEYID).setEnabled(enableSSHFeatures);
267 findPreference(HostDatabase.FIELD_HOST_USEAUTHAGENT).setEnabled(enableSSHFeatures); 267 findPreference(HostDatabase.FIELD_HOST_USEAUTHAGENT).setEnabled(enableSSHFeatures);
268 findPreference(HostDatabase.FIELD_HOST_POSTLOGIN).setEnabled(!enable5250Features);
268 findPreference(HostDatabase.FIELD_HOST_COMPRESSION).setEnabled(enableSSHFeatures); 269 findPreference(HostDatabase.FIELD_HOST_COMPRESSION).setEnabled(enableSSHFeatures);
269 findPreference(HostDatabase.FIELD_HOST_HTTPPROXY).setEnabled(enableAsyncFeatures); 270 findPreference(HostDatabase.FIELD_HOST_HTTPPROXY).setEnabled(enableAsyncFeatures);
270 findPreference(HostDatabase.FIELD_HOST_WANTSESSION).setEnabled(enableSSHFeatures); 271 findPreference(HostDatabase.FIELD_HOST_WANTSESSION).setEnabled(enableSSHFeatures);
271 findPreference(HostDatabase.FIELD_HOST_USERNAME).setEnabled(enableSSHFeatures); 272 findPreference(HostDatabase.FIELD_HOST_USERNAME).setEnabled(enableSSHFeatures);
272 findPreference(HostDatabase.FIELD_HOST_EMULATION).setEnabled(!enable5250Features); 273 findPreference(HostDatabase.FIELD_HOST_EMULATION).setEnabled(!enable5250Features);
337 private void updateSummaries() { 338 private void updateSummaries() {
338 // for all text preferences, set hint as current database value 339 // for all text preferences, set hint as current database value
339 for (String key : this.pref.values.keySet()) { 340 for (String key : this.pref.values.keySet()) {
340 if (key.equals(HostDatabase.FIELD_HOST_POSTLOGIN)) continue; 341 if (key.equals(HostDatabase.FIELD_HOST_POSTLOGIN)) continue;
341 if (key.equals(HostDatabase.FIELD_HOST_EMULATION)) continue; 342 if (key.equals(HostDatabase.FIELD_HOST_EMULATION)) continue;
343 if (key.equals(HostDatabase.FIELD_HOST_MONITOR)) continue;
342 344
343 Preference pref = this.findPreference(key); 345 Preference pref = this.findPreference(key);
344 346
345 if (pref == null) continue; 347 if (pref == null) continue;
346 348