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

Commit 7372cf98 authored by Charlotte Lu's avatar Charlotte Lu
Browse files

Add SettingsTextFieldPassword enable.

Fix: 298906796
Test: Visual
Change-Id: I74f7951d2d2dacf53138c3ea1d68d1ca7f3e36f3
parent a17f6b8d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -29,8 +29,8 @@ import androidx.compose.material3.OutlinedTextField
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.remember
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.testTag
@@ -46,6 +46,7 @@ import com.android.settingslib.spa.framework.theme.SettingsTheme
fun SettingsTextFieldPassword(
    value: String,
    label: String,
    enabled: Boolean = true,
    onTextChange: (String) -> Unit,
) {
    var visibility by remember { mutableStateOf(false) }
@@ -60,6 +61,7 @@ fun SettingsTextFieldPassword(
            keyboardType = KeyboardType.Password,
            imeAction = ImeAction.Send
        ),
        enabled = enabled,
        trailingIcon = {
            Icon(
                imageVector = if (visibility) Icons.Outlined.VisibilityOff