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:
parent
4807414ece
commit
87fcbbe753
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user