Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10096] Android: TableViewRow - Option dialog disappears after device rotation

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-02-26T08:35:10.000+0000
Affected Version/sRelease 2.1.1
Fix Version/sRelease 3.0.2
ComponentsAndroid
Labelsapi, qe-and070112
ReporterTamila Smolich
Assigneejithinpv
Created2012-07-23T14:54:01.000+0000
Updated2017-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

Comments

  1. jithinpv 2013-02-26

    cannot reproduce this issue with sdk versions 3.0.2 and 3.1.0 .
  2. Olga Romero 2013-02-27

    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
  3. Lee Morris 2017-03-20

    Closing ticket as the issue cannot be reproduced.

JSON Source