[TIMOB-7366] iOS: iPad 5.0: Titanium.UI.EmailDialog attachment icon does not display
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-02-14T23:29:03.000+0000 |
Affected Version/s | Release 1.8.0.1, Release 1.8.1 |
Fix Version/s | Sprint 2012-03, Release 2.0.0, Release 1.8.2 |
Components | iOS |
Labels | module_emaildialog, qe-ios012312, qe-testadded |
Reporter | Dustin Hyde |
Assignee | Vishal Duggal |
Created | 2012-01-24T16:27:53.000+0000 |
Updated | 2012-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
File | Date | Size |
---|---|---|
ipad 4.3 correct.png | 2012-01-24T16:27:53.000+0000 | 31881 |
ipad 5.0 missing attachment icon.png | 2012-01-24T16:27:53.000+0000 | 30913 |
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