在Packages\apps\mms\src\com\android\mms\ui\UriImage.java
initFromContentUri函数
initFromContentUri函数
请找到这段代码:
/// M: Code analyze 003, For fix bug ALPS00278013, send the Mms
// with a image from phone to email,but the image name changed
// to number and the suffix is lost when received. @{
// filePath = uri.getPath();
filePath = c.getString(
c.getColumnIndexOrThrow(Images.Media.DATA));
/// @}
改为:
/// M: Code analyze 003, For fix bug ALPS00278013, send the Mms
// with a image from phone to email,but the image name changed
// to number and the suffix is lost when received. @{
// filePath = uri.getPath();
try {
filePath = c.getString(
c.getColumnIndexOrThrow(Images.Media.DATA));
} catch (IllegalArgumentException e){
filePath = uri.getPath();
}
/// @}
/// M: Code analyze 003, For fix bug ALPS00278013, send the Mms
// with a image from phone to email,but the image name changed
// to number and the suffix is lost when received. @{
// filePath = uri.getPath();
filePath = c.getString(
c.getColumnIndexOrThrow(Images.Media.DATA));
/// @}
改为:
/// M: Code analyze 003, For fix bug ALPS00278013, send the Mms
// with a image from phone to email,but the image name changed
// to number and the suffix is lost when received. @{
// filePath = uri.getPath();
try {
filePath = c.getString(
c.getColumnIndexOrThrow(Images.Media.DATA));
} catch (IllegalArgumentException e){
filePath = uri.getPath();
}
/// @}