am 678a781b: Merge change 4440 into donut

Merge commit '678a781bb59364e462dca650a21a9d4d1ad56736'

* commit '678a781bb59364e462dca650a21a9d4d1ad56736':
  Properly create Image for the icons so that they are transparent.
This commit is contained in:
Android (Google) Code Review
2009-06-17 15:38:57 -07:00
committed by The Android Open Source Project

View File

@@ -53,8 +53,7 @@ public class ImageFactory {
InputStream stream = getClass().getResourceAsStream(imageName); InputStream stream = getClass().getResourceAsStream(imageName);
if (stream != null) { if (stream != null) {
try { try {
ImageData imgData = new ImageData(stream); image = new Image(mDisplay, stream);
image = new Image(mDisplay, imgData, imgData.getTransparencyMask());
} catch (SWTException e) { } catch (SWTException e) {
// ignore // ignore
} catch (IllegalArgumentException e) { } catch (IllegalArgumentException e) {