diff --git a/app/src/main/java/com/nextcloud/talk/settings/SettingsActivity.kt b/app/src/main/java/com/nextcloud/talk/settings/SettingsActivity.kt index 2cda998f3..0342858c8 100644 --- a/app/src/main/java/com/nextcloud/talk/settings/SettingsActivity.kt +++ b/app/src/main/java/com/nextcloud/talk/settings/SettingsActivity.kt @@ -54,6 +54,7 @@ import android.widget.EditText import android.widget.LinearLayout import android.widget.Toast import androidx.appcompat.app.AlertDialog +import androidx.appcompat.view.ContextThemeWrapper import androidx.core.content.ContextCompat import androidx.core.view.ViewCompat import androidx.work.OneTimeWorkRequest @@ -1012,7 +1013,7 @@ class SettingsActivity : BaseActivity() { val phoneNumberLayoutWrapper = LinearLayout(context) phoneNumberLayoutWrapper.orientation = LinearLayout.VERTICAL phoneNumberLayoutWrapper.setPadding(PHONE_NUMBER_SIDE_PADDING, 0, PHONE_NUMBER_SIDE_PADDING, 0) - val phoneNumberInputLayout = TextInputLayout(context) + val phoneNumberInputLayout = TextInputLayout(ContextThemeWrapper(this, R.style.TextInputLayoutTheme)) val phoneNumberField = EditText(context) phoneNumberInputLayout.setHelperTextColor( ColorStateList.valueOf(resources!!.getColor(R.color.nc_darkRed, null)) diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index a8ab679e7..04de235ee 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -233,6 +233,10 @@ @null + +