[TIMOB-3685] Android: Facebook - d-pad fires off 2X events for certain test cases
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-11-05T15:34:22.000+0000 |
| Affected Version/s | Release 1.7.0 |
| Fix Version/s | Release 1.7.0, Sprint 2011-20, Release 1.8.0 |
| Components | Android |
| Labels | regression |
| Reporter | Thomas Huelbert |
| Assignee | Bill Dawson |
| Created | 2011-04-26T08:20:39.000+0000 |
| Updated | 2011-11-05T15:34:22.000+0000 |
Description
1.droid1 or N1
2.Base UI > window standalone
3.use dpad to launch a window
4.use touch to close (note it does not close), tap a second time
results: 2 windows were spawned.
also
1.Base UI > Window properties
2.use the d pad to give focus to and select "layout dimension properties button"
results: objects appear then dissapear quickly
expecetd: as when using touch, one tap to spwan, one tap to dismiss
I wonder if this is related to touch fixes.
Simple failcase app.js shows that using the D-Pad button increases the click count by 2:
Titanium.UI.setBackgroundColor('#000'); var win = Titanium.UI.createWindow({ title:'Test', backgroundColor:'#000', exitOnClose: true }); var console = Ti.UI.createLabel({ backgroundColor: 'blue', color: 'red', left: 10, right: 10, bottom: 20, height: 'auto' }); win.add(console); var clickCount = 0; var b = Ti.UI.createButton({ title: 'Click moi' }); b.addEventListener('click', function(){ clickCount++; console.text = clickCount + ' clicks'; }); win.add(b); win.open();Also fixes TIMOB-4083. Fix put to master and 1_7_X
Verified fixed in kitchenSink and with test app on Droid 1 (2.2.1), Titanium Studio, build: 1.0.0.201105131803, Titanium SDK version: 1.7.X (r187fe3fd)
Standardizing summary and labels.