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

Android: Getting back from camera with overlay closes the app

    Details

    • Type: Bug
    • Status: Open
    • Priority: None
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
    • Story Points:
      5
    • Sprint:
      2019 Sprint 22

      Description

      When a Camera activity with an overlay is opened from the first window in an application and the system's back button is pressed the application gets closed.

      Test code:
      app.js

      var win = Ti.UI.createWindow(),
      	button = Ti.UI.createButton({ title: 'Camera' });
      button.addEventListener('click', function () {
      	Ti.Media.showCamera({
      		overlay: getOverlay()
      	});
      });
      win.add(button);
      win.open();
       
      function getOverlay() {
      	var view = Ti.UI.createView({
      		backgroundColor: '#55990000',
      	});
      	return view;
      }
      
      

      Opening a camera activity from another window and clicking back works as expected - only the camera activity is closed.

      One reason this may happen is that the camera activity with an overlay does not have a WindowProxy child and this raises the exitOnClose flag when we go back from it with only one window in the stack.

        Attachments

          Activity

            People

            • Assignee:
              ybanev Yordan Banev
              Reporter:
              ybanev Yordan Banev
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Source Code