Android: Replace magic number for TYPE_NUMBER_VARIATION_PASSWORD

This field has been defined since API level 11, so no reason why we
shouldn't just use that instead.

Change-Id: I8e3ffde3680e41f26d776e1f0474f632186a6b27
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
(cherry picked from commit 8ad66a14889e8e1b79eb7e1ca86faa1c19132fd3)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Christian Strømme 2021-01-14 10:54:23 +01:00 committed by Qt Cherry-pick Bot
parent 4807414ece
commit 87fcbbe753

View File

@ -343,7 +343,7 @@ public class QtActivityDelegate
}
if ((inputHints & ImhHiddenText) != 0)
inputType |= 0x10 /* TYPE_NUMBER_VARIATION_PASSWORD */;
inputType |= android.text.InputType.TYPE_NUMBER_VARIATION_PASSWORD;
} else if ((inputHints & ImhDialableCharactersOnly) != 0) {
inputType = android.text.InputType.TYPE_CLASS_PHONE;
} else if ((inputHints & (ImhDate | ImhTime)) != 0) {