[TIMOB-10096] Android: TableViewRow - Option dialog disappears after device rotation
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2013-02-26T08:35:10.000+0000 |
Affected Version/s | Release 2.1.1 |
Fix Version/s | Release 3.0.2 |
Components | Android |
Labels | api, qe-and070112 |
Reporter | Tamila Smolich |
Assignee | jithinpv |
Created | 2012-07-23T14:54:01.000+0000 |
Updated | 2017-03-20T16:34:23.000+0000 |
Description
Description:
Option dialog disappears after device rotation.
This is not a regression, the behavior exists as far back as 1.8.2 at least.
Steps to reproduce:
1. Run the following codes:
app.js:
var browserWin = require('browser').browserWin;
var browser = new browserWin();
browser.open();
browser.js:
var browserWin = function() {
var win = Ti.UI.createWindow({
navBarHidden : true,
});
// tableview
var data = [];
for(var i = 10 - 1; i >= 0; i--) {
// create row
var row = Ti.UI.createTableViewRow({
});
// create and add a button
var button = Ti.UI.createButton({
title : 'Open new window',
left:0
});
button.addEventListener('click', function(e) {
var browserWin = require('browser').browserWin;
var browser = new browserWin();
browser.open();
});
row.add(button);
// create and add a button
var picker = Ti.UI.createPicker({
selectionIndicator : true,
right : 0
});
var pickerRow = Ti.UI.createPickerRow({
title : 'option 1'
});
picker.add(pickerRow);
row.add(picker);
data.push(row);
};
var tableView = Ti.UI.createTableView({
data : data
});
win.add(tableView);
return win;
}
// export statements
exports.browserWin = browserWin;
2. Press any "option 1" button to get option dialog
3. Rotate device
Actual result:
Option dialog disappears
Expected result:
Option dialog should not desappear
cannot reproduce this issue with sdk versions 3.0.2 and 3.1.0 .
Cannot reproduce. Tested with: Titanium Studio, build: 3.0.2.201302191606 Titanium SDK, build: 3.0.2.GA Devices: Android 2.2 Emulator Nexus 7 Android version 4.2 GalaxyS3 Android version 4.0.4
Closing ticket as the issue cannot be reproduced.