Permalink
Browse files

Merge "Set source of VideoModel to fullname of video file"

  • Loading branch information...
2 parents 455364f + a9ca40f commit 3858272826b0d868fdd398b0f4967d0ce37c6956 Tom Taylor committed with Gerrit Code Review Nov 15, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/com/android/mms/model/VideoModel.java
@@ -70,7 +70,8 @@ private void initModelFromUri(Uri uri) throws MmsException {
}
private void initFromFile(Uri uri) {
- mSrc = uri.getPath();
+ String path = uri.getPath();
+ mSrc = path.substring(path.lastIndexOf('/') + 1);
MimeTypeMap mimeTypeMap = MimeTypeMap.getSingleton();
String extension = MimeTypeMap.getFileExtensionFromUrl(mSrc);
if (TextUtils.isEmpty(extension)) {

0 comments on commit 3858272

Please sign in to comment.