[TIMOB-3644] Android: Alert dialogs tests in KS fail to show dialogs (see error)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-05-18T17:20:04.000+0000 |
Affected Version/s | Release 1.7.0 |
Fix Version/s | Release 1.7.0, Sprint 2011-20 |
Components | Android |
Labels | android, dialog, options, regression, reported-1.7.0 |
Reporter | Thomas Huelbert |
Assignee | Marshall Culpepper |
Created | 2011-04-21T11:42:37.000+0000 |
Updated | 2011-05-21T11:39:37.000+0000 |
Description
1.Base UI > Views > Alert Dialog
2.Tap any of the buttons (except Alert)
results: no dialog and the following output is seen -
W/TiUIDialog( 7940): (main) [775,1746723] Window must have gone away.
W/WindowManager( 2499): Attempted to add application window with unknown token HistoryRecord{4835ad00 com.appcelerator.pushtest/org.appcelerator.titanium.TiActivity}. Aborting.
not in 1.6.2
Attachments
File | Date | Size |
---|---|---|
TIMOB-3644.js | 2011-05-18T14:04:46.000+0000 | 2359 |
only seen on galaxy tab and no on droid 1 or nexus s
Tried on the Galaxy Tab Emulator. I can't run KS on the Galaxy Tab emulator because they don't include Google APIs, but I ripped out the alert dialogs test (alert.js) and put its code into its own heavyweight window in a test app, and the dialogs worked fine. But this doesn't necessarily mean anything. :) Marshall, as you have the Tab, I'm gonna hand off to you. Start by installing KS and running Base UI > Views > Alert Dialog and try all the buttons. If they work, we'll need more info.
Assigning to MC because he has Tab. See my comment, Marshall.
There are a number of tests affected by this bug in KitchenSink/SmokeTest: - Base UI > Views > Alert Dialog - Controls > Activity Indicator - Controls > Progress Dialog - Phone > Play Movie I also attached a standalone test that shows the fail case in 5 different situations
I tried the standalone test and the app stopped on the splash on emulator and Galaxy Tab. Tried in iOS simulator for comparison and got "result of expression 'Titanium.UI.ActivityIndicator' [undefined] is not an object. at app.js (line 31)" I added the following code to the test: var win = Titanium.UI.createWindow({ backgroundColor:'#fff' }); line 31 is the second line of this: var progressIndicator = Titanium.UI.createActivityIndicator({ 31--> location: Titanium.UI.ActivityIndicator.DIALOG, type: Titanium.UI.ActivityIndicator.DETERMINANT, message: 'Downloading 0 of 10', min: 0, max: 10, value: 0 });
Verified fixed in KS on the Galaxy Tab (2.2.1), Titanium Studio, build: 1.0.0.201105131803, Titanium SDK version: 1.7.X (r187fe3fd).