Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 3858272826b0d868fdd398b0f4967d0ce37c6956 2 parents 455364f + a9ca40f
Tom Taylor authored Gerrit Code Review committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/com/android/mms/model/VideoModel.java
View
3  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)) {
Please sign in to comment.
Something went wrong with that request. Please try again.