Android: Fix the input type for date/time
The default variation of the DATETIME class is to show the layout for date and time. If either date or time is requested, then only set one of them. Change-Id: I5178f5f80490b7b0d7e7011d11da402a316d164a Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> (cherry picked from commit 86e10e1acd34ae4463bb2b0c24b8bdab71c6ade4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
0da2b24991
commit
27337fe242
@ -351,7 +351,7 @@ public class QtActivityDelegate
|
||||
if ((inputHints & (ImhDate | ImhTime)) != (ImhDate | ImhTime)) {
|
||||
if ((inputHints & ImhDate) != 0)
|
||||
inputType |= android.text.InputType.TYPE_DATETIME_VARIATION_DATE;
|
||||
if ((inputHints & ImhTime) != 0)
|
||||
else
|
||||
inputType |= android.text.InputType.TYPE_DATETIME_VARIATION_TIME;
|
||||
} // else { TYPE_DATETIME_VARIATION_NORMAL(0) }
|
||||
} else { // CLASS_TEXT
|
||||
|
Loading…
x
Reference in New Issue
Block a user