var self = Ti.UI.createWindow({layout:'vertical', backgroundColor:'#0093b4'});
var aButton = Ti.UI.createButton({title : 'Screen Shot\nAsync',
height : Ti.UI.SIZE, width : Ti.UI.SIZE,});
aButton.addEventListener('click', function() {
self.toImage(function(_blob) {
alert('toImage completed');});
});
self.add(aButton);
self.open();
Pressing the above button never fires the complete callback on Android.
[iOS works perfect]
See: [
http://developer.appcelerator.com/question/150289/i-cant-get-toimage-callback-to-fire] as well for Alloy.
PR: https://github.com/appcelerator/titanium_mobile/pull/7280 Used the same test case to verify the fix.
[~hpham] Updated PR with code changes. Please review https://github.com/appcelerator/titanium_mobile/pull/7280 Aligned the behaviour same as in iOS.
[~hpham] Please check my comments in PR https://github.com/appcelerator/titanium_mobile/pull/7280
Closing ticket as fixed.