From 0a2fb87cbb6226808f8ea15488b38b587b07a34e Mon Sep 17 00:00:00 2001 From: Rossen Hristov Date: Thu, 12 Mar 2015 15:53:15 +0200 Subject: [PATCH] Fixed the error thrown when setting TextField.secure. --- ui/text-field/text-field.android.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/text-field/text-field.android.ts b/ui/text-field/text-field.android.ts index 9aa2959fb..926443421 100644 --- a/ui/text-field/text-field.android.ts +++ b/ui/text-field/text-field.android.ts @@ -33,6 +33,9 @@ function onSecurePropertyChanged(data: dependencyObservable.PropertyChangeData) else if (currentClass === android.text.InputType.TYPE_CLASS_NUMBER) { newInputType = currentClass | currentFlags | android.text.InputType.TYPE_NUMBER_VARIATION_PASSWORD; } + + // Lower all autocapitalization bits, because password bits don't like them and we will receive "Unsupported input type: 16513" error for example. + newInputType = newInputType & ~28762; //28762 (0x00007000) 13,14,15bits } else { if (currentClass === android.text.InputType.TYPE_CLASS_TEXT) {