packages\apps\Gallery2\src\com\android\gallery3d\data\MediaDetails.java
..
private static void setExifData(MediaDetails details, ExifTag tag,
int key) {
if (tag != null) {
String value = null;
int type = tag.getDataType();
if (type == ExifTag.TYPE_UNSIGNED_RATIONAL || type == ExifTag.TYPE_RATIONAL) {
value = String.valueOf(tag.getValueAsRational(0).toDouble());
} else if (type == ExifTag.TYPE_ASCII) {
value = tag.getValueAsString();
} else {
value = String.valueOf(tag.forceGetValueAsLong(0));
}
if (key == MediaDetails.INDEX_FLASH) {
MediaDetails.FlashState state = new MediaDetails.FlashState(
Integer.valueOf(value.toString()));
details.addDetail(key, state);
} else {
+ //add by ljw start
+ if(key == MediaDetails.INDEX_MAKE){ //此key是制造商 根据需求修改不同key
+
+ value = "WO";
+ }
+ //add by ljw end
details.addDetail(key, value);
}
}
}