Commit 3c8f8976 authored by Donald's avatar Donald Committed by GitHub
Browse files

Merge pull request #361 from HoraApps/revert-360-master

Revert "fix bug: can't show pic with Uri, such as attachment of Mms"
parents 1be991d9 080b6c8b
......@@ -274,7 +274,6 @@ public class SingleMediaActivity extends SharedMediaActivity {
menu.setGroupVisible(R.id.on_internal_storage, false);
menu.setGroupVisible(R.id.only_photos_options, false);
menu.findItem(R.id.sort_action).setVisible(false);
menu.findItem(R.id.action_details).setVisible(false);
}
return super.onPrepareOptionsMenu(menu);
......
......@@ -55,7 +55,7 @@ public class Album implements Serializable {
}
public Album(Context context, @NotNull File mediaPath) {
this();
super();
File folder = mediaPath.getParentFile();
this.path = folder.getPath();
this.name = folder.getName();
......@@ -71,9 +71,7 @@ public class Album implements Serializable {
* @param mediaUri uri of the media to display
*/
public Album(Context context, Uri mediaUri) {
this();
this.path = mediaUri.toString();
this.name = mediaUri.getPath();
super();
media.add(0, new Media(context, mediaUri));
setCurrentPhotoIndex(0);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment