Project: titanium
Issue TIMOB-15812: Android: Media: Camera is not opening with overlay property set in Ti.Media.showCamera()
Android: Media: Camera is not opening with overlay property set in Ti.Media.showCamera(). It also occur on SDK: 3.1.3.GA Steps to reproduce 1. Run the below app. {code} var _window = Ti.UI.createWindow({	backgroundColor:'white' });	var openCameraButton = Ti.UI.createButton({	title : 'Open Camera'	});	openCameraButton.addEventListener('click', function(e) {	var cameraOverlay = Ti.UI.createView();	var takePhotoButton = Ti.UI.createButton({	backgroundColor : '#fff',	backgroundSelectedColor : '#efefef',	borderColor : '#000',	borderRadius : 17,	borderWidth : 1,	bottom : 65,	color : '#000',	height : 34,	opacity : 0.4,	title : 'Take Photo',	width : '100dp'	});	var closeCameraButton = Ti.UI.createButton({	backgroundColor : '#fff',	backgroundSelectedColor : '#efefef',	borderColor : '#000',	borderRadius : 17,	borderWidth : 1,	bottom : 65,	color : '#000',	height : 34,	opacity : 0.4,	right : 10,	title : 'Close Camera',	top : 10,	width : '150dp'	});	takePhotoButton.addEventListener('click', function(e) {	Ti.Media.takePicture();	});	closeCameraButton.addEventListener('click', function(e) {	alert('closing camera');	Ti.Media.hideCamera();	});	cameraOverlay.add(takePhotoButton);	cameraOverlay.add(closeCameraButton);	Ti.Media.showCamera({	success : function(e) {	alert('success callback');	},	cancel : function() {	Ti.API.info('cancel callback');	},	error : function(e) {	Ti.API.info('error callback');	},	allowEditing : false,	animated : false,	autohide : false,	mediaTypes : [Ti.Media.MEDIA_TYPE_PHOTO],	overlay : cameraOverlay,	saveToPhotoGallery : false,	showControls : false	});	});	_window.add(openCameraButton); _window.open(); {code} if overlay property is commented then the app works fine. Expected: Camera is opened. Actual: Camera does not open.
Story points: 3