Use getter for obtaining photo data
Daisuke Miyakawa [Tue, 5 Apr 2011 15:16:47 +0000 (08:16 -0700)]
Bug: 4066223
Change-Id: I2ef49fde19549da6515b6a7c9a6953fa8834cbaf

src/com/android/apps/tag/record/VCardRecord.java

index 32641a9..4a6adbc 100644 (file)
@@ -292,7 +292,7 @@ public class VCardRecord extends ParsedNdefRecord implements OnClickListener {
                     mCachedName = entry.getDisplayName();
                     List<VCardEntry.PhotoData> photoList = entry.getPhotoList();
                     if (photoList != null && !photoList.isEmpty()) {
-                        byte[] rawData = photoList.get(0).photoBytes;
+                        byte[] rawData = photoList.get(0).getBytes();
                         mCachedPhoto = new BitmapDrawable(
                                 context.getResources(),
                                 BitmapFactory.decodeByteArray(rawData, 0, rawData.length));