Skip to content
Snippets Groups Projects
Commit 266d21d2 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Info: load media from library if available

parent 05148ffd
No related branches found
No related tags found
No related merge requests found
......@@ -60,6 +60,11 @@ public class InfoActivity extends AudioPlayerContainerActivity implements View.O
mItem = (MediaWrapper) (savedInstanceState != null ?
savedInstanceState.getParcelable(TAG_ITEM) :
getIntent().getParcelableExtra(TAG_ITEM));
if (mItem.getId() == 0L) {
MediaWrapper mediaWrapper = VLCApplication.getMLInstance().getMedia(mItem.getUri());
if (mediaWrapper != null)
mItem = mediaWrapper;
}
mBinding.setItem(mItem);
final int fabVisibility = savedInstanceState != null
? savedInstanceState.getInt(TAG_FAB_VISIBILITY) : -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment