Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7366] iOS: iPad 5.0: Titanium.UI.EmailDialog attachment icon does not display

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2012-02-14T23:29:03.000+0000
Affected Version/sRelease 1.8.0.1, Release 1.8.1
Fix Version/sSprint 2012-03, Release 2.0.0, Release 1.8.2
ComponentsiOS
Labelsmodule_emaildialog, qe-ios012312, qe-testadded
ReporterDustin Hyde
AssigneeVishal Duggal
Created2012-01-24T16:27:53.000+0000
Updated2012-02-14T23:29:03.000+0000

Description

Titanium.UI.EmailDialog attachment icon does not display in iPad 5.0. Screenshots Attached. Icons display correctly in all other iOS configurations. Steps to Reproduce: 1. Run code.
var win = Ti.UI.createWindow({
	backgroundColor:'#FFFFFF',
	orientationModes:[Ti.UI.PORTRAIT,Titanium.UI.LANDSCAPE_LEFT,Titanium.UI.LANDSCAPE_RIGHT]
});

var button = Ti.UI.createButton({
	title: 'ScreenShot!!'
});

button.addEventListener('click',function(){
	Titanium.Media.takeScreenshot(function(event){
		var screenShot = event.media;
		var img = Titanium.UI.createImageView({ image: screenShot });
		Ti.API.info('saving the image into photogallery');
		Titanium.Media.saveToPhotoGallery(img.image);
		Ti.API.info('saving the blob into photogallery');
		Titanium.Media.saveToPhotoGallery(img.toImage());
		Ti.API.info('launch the email client!!');
		var emailDialog = Titanium.UI.createEmailDialog()
		emailDialog.subject = "Colors of...";
		emailDialog.messageBody = 'Lorem ipsum...';
		emailDialog.addAttachment(img.toImage());
		emailDialog.open();
		win.add(img);
	});
});

win.add(button);
win.open();
2. Press button to take screenshot. . . . App takes screenshot, saves it, and adds it to an email attachment. Expected Result: Email attachement icon should be visible. Actual Result: Email attachment icon does not show.

Attachments

FileDateSize
ipad 4.3 correct.png2012-01-24T16:27:53.000+000031881
ipad 5.0 missing attachment icon.png2012-01-24T16:27:53.000+000030913

Comments

  1. Dustin Hyde 2012-02-06

    Closing as Fixed. SDK: 1.9.0.v20120203163134 Studio: 1.0.8.201201262211 OS: Lion Devices Tested: iPhone Simulator 5.0, iPad Simulator 5.0/4.3, iPad 5.0.1

JSON Source