Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d8489c1c authored by cketti's avatar cketti
Browse files

Disable "IMAP path prefix" input when auto-detecting IMAP namespace

parent 23add3be
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ fun TextInput(
    errorMessage: String? = null,
    contentPadding: PaddingValues = inputContentPadding(),
    isSingleLine: Boolean = true,
    isEnabled: Boolean = true,
) {
    InputLayout(
        modifier = modifier,
@@ -29,6 +30,7 @@ fun TextInput(
            value = text,
            onValueChange = onTextChange,
            label = label,
            isEnabled = isEnabled,
            isRequired = isRequired,
            hasError = errorMessage != null,
            isSingleLine = isSingleLine,
+16 −7
Original line number Diff line number Diff line
@@ -194,6 +194,14 @@ internal fun AccountIncomingConfigContent(
                    }

                    item {
                        if (state.imapAutodetectNamespaceEnabled) {
                            TextInput(
                                onTextChange = {},
                                label = stringResource(id = R.string.account_setup_incoming_config_imap_prefix_label),
                                contentPadding = defaultItemPadding(),
                                isEnabled = false,
                            )
                        } else {
                            TextInput(
                                text = state.imapPrefix.value,
                                errorMessage = state.imapPrefix.error?.toResourceString(resources),
@@ -202,6 +210,7 @@ internal fun AccountIncomingConfigContent(
                                contentPadding = defaultItemPadding(),
                            )
                        }
                    }

                    item {
                        CheckboxInput(