Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-24531

Android: onBackPressed behaviour does not work correctly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 6.0.3
    • Fix Version/s: Release 6.0.4
    • Component/s: Android
    • Labels:
    • Story Points:
      3

      Description

      Additional windows will close when the back button is pressed even when exitOnClose is not specified.

      TEST CASE

      var win = Ti.UI.createWindow({
          backgroundColor: '#fff'
      });
       
      var lbl = Ti.UI.createLabel({
      	text:"window 1"
      })
       
      var btn = Ti.UI.createButton({
      	title:"create",
      	bottom:10
      });
       
      btn.addEventListener("click",function(){
      	var win2 = Ti.UI.createWindow({
      	    backgroundColor: '#fff'
      	});
      	var lbl2 = Ti.UI.createLabel({
      		text:"Close to go to window 1", color:"#000"
      	});
      	win2.add(lbl2);
      	win2.open();
      })
       
      win.add(btn);
      win.add(lbl);
      win.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                gmathews Gary Mathews
                Reviewer:
                Andy Waldman
              • Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code