Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28209] iOS: App orientations stopped when using the search bar in the listview

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sRelease 10.0.0
Componentsn/a
Labelsn/a
ReporterAhmed Mohamed
AssigneeVijay Singh
Created2020-10-15T07:21:49.000+0000
Updated2021-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

FileDateSize
index.js2020-10-15T06:38:42.000+0000110
index.xml2020-10-15T06:38:22.000+0000186
listview.js2020-10-15T06:38:42.000+0000114
listview.xml2020-10-15T06:38:23.000+0000445
Simulator Screen Shot - iPad Pro (9.7-inch) - 2020-10-15 at 08.39.30.png2020-10-15T06:41:42.000+000078136
Simulator Screen Shot - iPad Pro (9.7-inch) - 2020-10-15 at 08.40.34.png2020-10-15T06:41:42.000+000074565

Comments

  1. Hans Knöchel 2020-10-17

    Duplicate of TIMOB-28109
  2. Ahmed Mohamed 2020-10-17

    Yes, see it now. The same issue with more info about critical orientation bug.
  3. Vijay Singh 2020-10-26

    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);
       
       });
       
  4. Vijay Singh 2020-10-30

    PR- https://github.com/appcelerator/titanium_mobile/pull/12233
  5. Satyam Sekhri 2021-01-14

    FR Passed. Waiting for Jenkins build.
  6. Christopher Williams 2021-01-15

    Merged to master for 10.0.0 target.

JSON Source