mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-24 02:12:15 -05:00
Fix so WebDAV does not have STARTTLS auth. type option
This commit is contained in:
parent
eb68bc0a9d
commit
bef10812d3
@ -164,16 +164,6 @@ public class AccountSetupIncoming extends K9Activity implements OnClickListener
|
|||||||
try {
|
try {
|
||||||
ServerSettings settings = Store.decodeStoreUri(mAccount.getStoreUri());
|
ServerSettings settings = Store.decodeStoreUri(mAccount.getStoreUri());
|
||||||
|
|
||||||
ArrayAdapter<ConnectionSecurity> securityTypesAdapter =
|
|
||||||
ConnectionSecurity.getArrayAdapter(this, mConnectionSecurityChoices);
|
|
||||||
mSecurityTypeView.setAdapter(securityTypesAdapter);
|
|
||||||
|
|
||||||
// Select currently configured security type
|
|
||||||
mCurrentSecurityTypeViewPosition = securityTypesAdapter.getPosition(settings.connectionSecurity);
|
|
||||||
mSecurityTypeView.setSelection(mCurrentSecurityTypeViewPosition, false);
|
|
||||||
|
|
||||||
updateAuthPlainTextFromSecurityType(settings.connectionSecurity);
|
|
||||||
|
|
||||||
// The first item is selected if settings.authenticationType is null or is not in mAuthTypeAdapter
|
// The first item is selected if settings.authenticationType is null or is not in mAuthTypeAdapter
|
||||||
mCurrentAuthTypeViewPosition = mAuthTypeAdapter.getPosition(settings.authenticationType);
|
mCurrentAuthTypeViewPosition = mAuthTypeAdapter.getPosition(settings.authenticationType);
|
||||||
mAuthTypeView.setSelection(mCurrentAuthTypeViewPosition, false);
|
mAuthTypeView.setSelection(mCurrentAuthTypeViewPosition, false);
|
||||||
@ -260,6 +250,17 @@ public class AccountSetupIncoming extends K9Activity implements OnClickListener
|
|||||||
throw new Exception("Unknown account type: " + mAccount.getStoreUri());
|
throw new Exception("Unknown account type: " + mAccount.getStoreUri());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Note that mConnectionSecurityChoices is configured above based on server type
|
||||||
|
ArrayAdapter<ConnectionSecurity> securityTypesAdapter =
|
||||||
|
ConnectionSecurity.getArrayAdapter(this, mConnectionSecurityChoices);
|
||||||
|
mSecurityTypeView.setAdapter(securityTypesAdapter);
|
||||||
|
|
||||||
|
// Select currently configured security type
|
||||||
|
mCurrentSecurityTypeViewPosition = securityTypesAdapter.getPosition(settings.connectionSecurity);
|
||||||
|
mSecurityTypeView.setSelection(mCurrentSecurityTypeViewPosition, false);
|
||||||
|
|
||||||
|
updateAuthPlainTextFromSecurityType(settings.connectionSecurity);
|
||||||
|
|
||||||
mCompressionMobile.setChecked(mAccount.useCompression(Account.TYPE_MOBILE));
|
mCompressionMobile.setChecked(mAccount.useCompression(Account.TYPE_MOBILE));
|
||||||
mCompressionWifi.setChecked(mAccount.useCompression(Account.TYPE_WIFI));
|
mCompressionWifi.setChecked(mAccount.useCompression(Account.TYPE_WIFI));
|
||||||
mCompressionOther.setChecked(mAccount.useCompression(Account.TYPE_OTHER));
|
mCompressionOther.setChecked(mAccount.useCompression(Account.TYPE_OTHER));
|
||||||
|
Loading…
Reference in New Issue
Block a user