[TIMOB-25734] Android : TextField Click event is not firing with 7.0.X SDK
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-02-06T22:42:01.000+0000 |
Affected Version/s | Release 7.0.1 |
Fix Version/s | Release 7.0.2 |
Components | Android |
Labels | escalation |
Reporter | Mostafizur Rahman |
Assignee | Gary Mathews |
Created | 2018-01-29T07:12:42.000+0000 |
Updated | 2018-02-07T22:25:10.000+0000 |
Description
Click event is not firing on click of text field using with 7.0.X SDK
*Sample code:*
var window = Ti.UI.createWindow({
backgroundColor : 'white'
});
var osname = Ti.Platform.osname;
Ti.App.IS_ANDROID = (osname === 'android');
if (Ti.App.IS_ANDROID) {
window.windowSoftInputMode = Ti.UI.Android.SOFT_INPUT_STATE_ALWAYS_HIDDEN;
}
var textfield = Ti.UI.createTextField({
color : 'black',
hintText : 'sample text',
hintTextColor : 'blue'
});
textfield.addEventListener('click', function() {
Ti.API.info('in text field click');
});
window.add(textfield);
window.open();
*Test Environment:*
Appcelerator Command-Line Interface, version 7.0.1
Operating System Mac OS X,Version 10.13.2,Architecture 64bit,
CPUs 4,Memory 8.0GB
Node.js Version = 8.9.1
npm Version = 5.5.1
Appcelerator CLI 4.2.11
Core Package 7.0.1
Titanium CLI 5.0.14
node-appc Version 0.2.41
Titanium SDK 7.0.1.GA
Android Device: Samsung Galaxy J7
*Steps to reproduce: *
1. Create a sample classic app.
2. Replace app.js with the attached app.js file
3.Run the app in android device.
4.Click on textfield
*Output:* Click event is not firing
*Console logs:*
[WARN] : TextView: TextView does not support text selection. Selection cancelled.
[INFO] : I/InputDispatcher( 2853): Delivering touch to : action: 0x0, toolType: 1
[INFO] : I/InputDispatcher( 2853): Delivering touch to : action: 0x1, toolType: 1
[WARN] : TextView: TextView does not support text selection. Selection cancelled.
[INFO] : I/InputDispatcher( 2853): Delivering touch to : action: 0x0, toolType: 1
[INFO] : I/InputDispatcher( 2853): Delivering touch to : action: 0x1, toolType: 1
[WARN] : TextView: TextView does not support text selection. Selection cancelled.
master: https://github.com/appcelerator/titanium_mobile/pull/9785 7_0_X: https://github.com/appcelerator/titanium_mobile/pull/9786
FR Passed. Backport PR merged. Waiting for master merge to be enabled.
Master PR merged.
Verified the fix in SDK 7.1.0.v20180207124118 & 7.0.2.v20180207022213. No issues. Closing. Studio Ver: 5.0.0.201712081732 OS Ver: 10.13.2 Xcode Ver: Xcode 9.2 Appc NPM: 4.2.12-2 Appc CLI: 7.0.2-master.8 Daemon Ver: 1.0.1 Ti CLI Ver: 5.0.14 Alloy Ver: 1.11.0 Node Ver: 8.9.1 NPM Ver: 5.5.1 Java Ver: 1.8.0_101 Devices: ⇨ google Nexus 6P --- Android 7.1.2 ⇨ google Nexus 5 --- Android 6.0.1