Skip to content

Commit

Permalink
Remove "Show only subscribed folders" from (old) incoming server sett…
Browse files Browse the repository at this point in the history
…ings screen
  • Loading branch information
cketti committed Aug 16, 2023
1 parent 397a061 commit b0ef477
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ public class AccountSetupIncoming extends K9Activity implements OnClickListener
private boolean mMakeDefault;
private CheckBox useCompressionCheckBox;
private CheckBox isSendClientIdEnabledCheckBox;
private CheckBox mSubscribedFoldersOnly;
private AuthTypeAdapter mAuthTypeAdapter;
private ConnectionSecurity[] mConnectionSecurityChoices = ConnectionSecurity.values();
private boolean editSettings;
Expand Down Expand Up @@ -128,7 +127,6 @@ public void onCreate(Bundle savedInstanceState) {
mNextButton = findViewById(R.id.next);
useCompressionCheckBox = findViewById(R.id.use_compression);
isSendClientIdEnabledCheckBox = findViewById(R.id.is_send_client_id_enabled);
mSubscribedFoldersOnly = findViewById(R.id.subscribed_folders_only);
mAllowClientCertificateView = findViewById(R.id.account_allow_client_certificate);

TextInputLayout serverLayoutView = findViewById(R.id.account_server_layout);
Expand Down Expand Up @@ -204,7 +202,6 @@ public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
findViewById(R.id.imap_path_prefix_section).setVisibility(View.GONE);
useCompressionCheckBox.setVisibility(View.GONE);
isSendClientIdEnabledCheckBox.setVisibility(View.GONE);
mSubscribedFoldersOnly.setVisibility(View.GONE);
} else if (settings.type.equals(Protocols.IMAP)) {
serverLayoutView.setHint(getString(R.string.account_setup_incoming_imap_server_label));

Expand All @@ -215,10 +212,6 @@ public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
if (pathPrefix != null) {
mImapPathPrefixView.setText(pathPrefix);
}

if (!editSettings) {
findViewById(R.id.imap_folder_setup_section).setVisibility(View.GONE);
}
} else {
throw new Exception("Unknown account type: " + settings.type);
}
Expand Down Expand Up @@ -265,8 +258,6 @@ public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
updatePortFromSecurityType();
}
mCurrentPortViewSetting = mPortView.getText().toString();

mSubscribedFoldersOnly.setChecked(mAccount.isSubscribedFoldersOnly());
} catch (Exception e) {
failure(e);
}
Expand Down Expand Up @@ -579,7 +570,6 @@ protected void onNext() {

mAccount.setUseCompression(useCompressionCheckBox.isChecked());
mAccount.setSendClientIdEnabled(isSendClientIdEnabledCheckBox.isChecked());
mAccount.setSubscribedFoldersOnly(mSubscribedFoldersOnly.isChecked());

AccountSetupCheckSettings.actionCheckSettings(this, mAccount, CheckDirection.INCOMING);
} catch (Exception e) {
Expand Down
14 changes: 0 additions & 14 deletions app/ui/legacy/src/main/res/layout/account_setup_incoming.xml
Original file line number Diff line number Diff line change
Expand Up @@ -158,20 +158,6 @@
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/imap_folder_setup_section"
android:orientation="vertical">

<CheckBox
android:id="@+id/subscribed_folders_only"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:text="@string/account_setup_incoming_subscribed_folders_only_label"
/>
</LinearLayout>

<CheckBox
android:id="@+id/use_compression"
android:layout_height="wrap_content"
Expand Down

0 comments on commit b0ef477

Please sign in to comment.