File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
compose/snippets/src/main/java/com/example/compose/snippets/text Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 1919package com.example.compose.snippets.text
2020
2121import android.graphics.Typeface
22- import android.provider.ContactsContract.CommonDataKinds.Email
2322import androidx.compose.foundation.BorderStroke
2423import androidx.compose.foundation.background
2524import androidx.compose.foundation.basicMarquee
@@ -893,8 +892,6 @@ fun PasswordTextField() {
893892}
894893// [END android_compose_text_auto_format_phone_number_showhidepassword]
895894
896-
897-
898895// [START android_compose_text_auto_format_phone_number_validatetext]
899896class EmailViewModel : ViewModel () {
900897 var email by mutableStateOf(" " )
@@ -939,11 +936,11 @@ fun ValidatingInputTextField(
939936@Preview
940937@Composable
941938fun ValidateInput () {
942- val emailViewModel : EmailViewModel = viewModel<EmailViewModel >()
939+ val emailViewModel: EmailViewModel = viewModel<EmailViewModel >()
943940 ValidatingInputTextField (
944941 email = emailViewModel.email,
945942 updateState = { input -> emailViewModel.updateEmail(input) },
946943 validatorHasErrors = emailViewModel.emailHasErrors
947944 )
948945}
949- // [END android_compose_text_auto_format_phone_number_validatetext]
946+ // [END android_compose_text_auto_format_phone_number_validatetext]
You can’t perform that action at this time.
0 commit comments