mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -05:00
Renamed member variables to match code style guidelines
This commit is contained in:
parent
92b17ec2e2
commit
e90a479384
@ -65,10 +65,10 @@ public class AccountSetupIncoming extends K9Activity implements OnClickListener
|
|||||||
private Button mNextButton;
|
private Button mNextButton;
|
||||||
private Account mAccount;
|
private Account mAccount;
|
||||||
private boolean mMakeDefault;
|
private boolean mMakeDefault;
|
||||||
private CheckBox compressionMobile;
|
private CheckBox mCompressionMobile;
|
||||||
private CheckBox compressionWifi;
|
private CheckBox mCompressionWifi;
|
||||||
private CheckBox compressionOther;
|
private CheckBox mCompressionOther;
|
||||||
private CheckBox subscribedFoldersOnly;
|
private CheckBox mSubscribedFoldersOnly;
|
||||||
|
|
||||||
public static void actionIncomingSettings(Activity context, Account account, boolean makeDefault) {
|
public static void actionIncomingSettings(Activity context, Account account, boolean makeDefault) {
|
||||||
Intent i = new Intent(context, AccountSetupIncoming.class);
|
Intent i = new Intent(context, AccountSetupIncoming.class);
|
||||||
@ -101,10 +101,10 @@ public class AccountSetupIncoming extends K9Activity implements OnClickListener
|
|||||||
mWebdavAuthPathView = (EditText)findViewById(R.id.webdav_auth_path);
|
mWebdavAuthPathView = (EditText)findViewById(R.id.webdav_auth_path);
|
||||||
mWebdavMailboxPathView = (EditText)findViewById(R.id.webdav_mailbox_path);
|
mWebdavMailboxPathView = (EditText)findViewById(R.id.webdav_mailbox_path);
|
||||||
mNextButton = (Button)findViewById(R.id.next);
|
mNextButton = (Button)findViewById(R.id.next);
|
||||||
compressionMobile = (CheckBox)findViewById(R.id.compression_mobile);
|
mCompressionMobile = (CheckBox)findViewById(R.id.compression_mobile);
|
||||||
compressionWifi = (CheckBox)findViewById(R.id.compression_wifi);
|
mCompressionWifi = (CheckBox)findViewById(R.id.compression_wifi);
|
||||||
compressionOther = (CheckBox)findViewById(R.id.compression_other);
|
mCompressionOther = (CheckBox)findViewById(R.id.compression_other);
|
||||||
subscribedFoldersOnly = (CheckBox)findViewById(R.id.subscribed_folders_only);
|
mSubscribedFoldersOnly = (CheckBox)findViewById(R.id.subscribed_folders_only);
|
||||||
|
|
||||||
mNextButton.setOnClickListener(this);
|
mNextButton.setOnClickListener(this);
|
||||||
|
|
||||||
@ -236,7 +236,7 @@ public class AccountSetupIncoming extends K9Activity implements OnClickListener
|
|||||||
findViewById(R.id.webdav_auth_path_section).setVisibility(View.GONE);
|
findViewById(R.id.webdav_auth_path_section).setVisibility(View.GONE);
|
||||||
findViewById(R.id.compression_section).setVisibility(View.GONE);
|
findViewById(R.id.compression_section).setVisibility(View.GONE);
|
||||||
findViewById(R.id.compression_label).setVisibility(View.GONE);
|
findViewById(R.id.compression_label).setVisibility(View.GONE);
|
||||||
subscribedFoldersOnly.setVisibility(View.GONE);
|
mSubscribedFoldersOnly.setVisibility(View.GONE);
|
||||||
mAccount.setDeletePolicy(Account.DELETE_POLICY_NEVER);
|
mAccount.setDeletePolicy(Account.DELETE_POLICY_NEVER);
|
||||||
} else if (uri.getScheme().startsWith("imap")) {
|
} else if (uri.getScheme().startsWith("imap")) {
|
||||||
serverLabelView.setText(R.string.account_setup_incoming_imap_server_label);
|
serverLabelView.setText(R.string.account_setup_incoming_imap_server_label);
|
||||||
@ -267,7 +267,7 @@ public class AccountSetupIncoming extends K9Activity implements OnClickListener
|
|||||||
findViewById(R.id.account_auth_type).setVisibility(View.GONE);
|
findViewById(R.id.account_auth_type).setVisibility(View.GONE);
|
||||||
findViewById(R.id.compression_section).setVisibility(View.GONE);
|
findViewById(R.id.compression_section).setVisibility(View.GONE);
|
||||||
findViewById(R.id.compression_label).setVisibility(View.GONE);
|
findViewById(R.id.compression_label).setVisibility(View.GONE);
|
||||||
subscribedFoldersOnly.setVisibility(View.GONE);
|
mSubscribedFoldersOnly.setVisibility(View.GONE);
|
||||||
if (uri.getPath() != null && uri.getPath().length() > 0) {
|
if (uri.getPath() != null && uri.getPath().length() > 0) {
|
||||||
String[] pathParts = uri.getPath().split("\\|");
|
String[] pathParts = uri.getPath().split("\\|");
|
||||||
|
|
||||||
@ -300,9 +300,9 @@ public class AccountSetupIncoming extends K9Activity implements OnClickListener
|
|||||||
SpinnerOption.setSpinnerOptionValue(mSecurityTypeView, i);
|
SpinnerOption.setSpinnerOptionValue(mSecurityTypeView, i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
compressionMobile.setChecked(mAccount.useCompression(Account.TYPE_MOBILE));
|
mCompressionMobile.setChecked(mAccount.useCompression(Account.TYPE_MOBILE));
|
||||||
compressionWifi.setChecked(mAccount.useCompression(Account.TYPE_WIFI));
|
mCompressionWifi.setChecked(mAccount.useCompression(Account.TYPE_WIFI));
|
||||||
compressionOther.setChecked(mAccount.useCompression(Account.TYPE_OTHER));
|
mCompressionOther.setChecked(mAccount.useCompression(Account.TYPE_OTHER));
|
||||||
|
|
||||||
if (uri.getHost() != null) {
|
if (uri.getHost() != null) {
|
||||||
mServerView.setText(uri.getHost());
|
mServerView.setText(uri.getHost());
|
||||||
@ -314,7 +314,7 @@ public class AccountSetupIncoming extends K9Activity implements OnClickListener
|
|||||||
updatePortFromSecurityType();
|
updatePortFromSecurityType();
|
||||||
}
|
}
|
||||||
|
|
||||||
subscribedFoldersOnly.setChecked(mAccount.subscribedFoldersOnly());
|
mSubscribedFoldersOnly.setChecked(mAccount.subscribedFoldersOnly());
|
||||||
|
|
||||||
validateFields();
|
validateFields();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
@ -426,10 +426,10 @@ public class AccountSetupIncoming extends K9Activity implements OnClickListener
|
|||||||
mAccount.setStoreUri(uri.toString());
|
mAccount.setStoreUri(uri.toString());
|
||||||
|
|
||||||
|
|
||||||
mAccount.setCompression(Account.TYPE_MOBILE, compressionMobile.isChecked());
|
mAccount.setCompression(Account.TYPE_MOBILE, mCompressionMobile.isChecked());
|
||||||
mAccount.setCompression(Account.TYPE_WIFI, compressionWifi.isChecked());
|
mAccount.setCompression(Account.TYPE_WIFI, mCompressionWifi.isChecked());
|
||||||
mAccount.setCompression(Account.TYPE_OTHER, compressionOther.isChecked());
|
mAccount.setCompression(Account.TYPE_OTHER, mCompressionOther.isChecked());
|
||||||
mAccount.setSubscribedFoldersOnly(subscribedFoldersOnly.isChecked());
|
mAccount.setSubscribedFoldersOnly(mSubscribedFoldersOnly.isChecked());
|
||||||
|
|
||||||
AccountSetupCheckSettings.actionCheckSettings(this, mAccount, true, false);
|
AccountSetupCheckSettings.actionCheckSettings(this, mAccount, true, false);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user