[TIMOB-28209] iOS: App orientations stopped when using the search bar in the listview
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Critical |
| Status | Closed |
| Resolution | Unresolved |
| Affected Version/s | n/a |
| Fix Version/s | Release 10.0.0 |
| Components | n/a |
| Labels | n/a |
| Reporter | Ahmed Mohamed |
| Assignee | Vijay Singh |
| Created | 2020-10-15T07:21:49.000+0000 |
| Updated | 2021-01-18T14:32:24.000+0000 |
Description
App won't listen to orientation changes when back from the window which has a search bar in focus mode and uses a keyboard inside listview.
when clicked on the back navigation button and the search bar in focus and it displays a keyboard, So the keyboard trying to hidden but the window is closed before it gets completely hidden and its animation didn't complete. Then all the app screens had a wrong orientation behavior when trying to change it.
{color:#f79232}*the log when keyboard up*{color}
Presenting view controllers on detached view controllers is discouraged <TiViewController: 0x7fc924077bd0>.
{color:#f79232}*the log when clicked back*{color}
Attempt to dismiss from view controller <TiViewController: 0x7fc924077bd0> while a presentation or dismiss is in progress!
Attachments
| File | Date | Size |
|---|---|---|
| index.js | 2020-10-15T06:38:42.000+0000 | 110 |
| index.xml | 2020-10-15T06:38:22.000+0000 | 186 |
| listview.js | 2020-10-15T06:38:42.000+0000 | 114 |
| listview.xml | 2020-10-15T06:38:23.000+0000 | 445 |
| Simulator Screen Shot - iPad Pro (9.7-inch) - 2020-10-15 at 08.39.30.png | 2020-10-15T06:41:42.000+0000 | 78136 |
| Simulator Screen Shot - iPad Pro (9.7-inch) - 2020-10-15 at 08.40.34.png | 2020-10-15T06:41:42.000+0000 | 74565 |
Duplicate of TIMOB-28109
Yes, see it now. The same issue with more info about critical orientation bug.
It looks valid bug. Moved to TIMOB to look in this. Test Case-
var basewin = Ti.UI.createWindow({ backgroundColor : 'white', layout : 'vertical' }); var baseWinBtn = Ti.UI.createButton({ title : 'Open listview window', top : 60 }); basewin.add(baseWinBtn); var navWin = Titanium.UI.createNavigationWindow({ window : basewin }) navWin.open(); baseWinBtn.addEventListener('click', function() { var indWin = Ti.UI.createWindow({ backgroundColor : 'red' }); var rows = []; for (var i = 0; i < 40; i++) { var title = i ? 'Row '+ i : 'Close Window' rows.push({ properties: { title:title , backgroundColor: 'red', searchableText:title}}); } var sb = Ti.UI.createSearchBar(); indWin.add(sb); var ls = Ti.UI.createListSection({ items: rows, sectionHeaderTitle: 'Section header', }); var lv = Ti.UI.createListView({ sections: [ls], searchView: sb, }) indWin.add(lv); navWin.openWindow(indWin); });PR- https://github.com/appcelerator/titanium_mobile/pull/12233
FR Passed. Waiting for Jenkins build.
Merged to master for 10.0.0 target.