mirror of
https://github.com/zoriya/Opus.git
synced 2026-06-02 22:19:32 +00:00
Preference and EditMetaData back return to the good fragment.
This commit is contained in:
@@ -362,6 +362,9 @@ namespace MusicApp
|
||||
}
|
||||
else if(item.ItemId == Resource.Id.settings)
|
||||
{
|
||||
//parcelableSender = sender;
|
||||
//this.parcelable = parcelable;
|
||||
|
||||
Intent intent = new Intent(Application.Context, typeof(Preferences));
|
||||
StartActivity(intent);
|
||||
}
|
||||
@@ -1172,15 +1175,15 @@ namespace MusicApp
|
||||
base.OnResume();
|
||||
switch (parcelableSender)
|
||||
{
|
||||
case "Queue":
|
||||
Navigate(Resource.Id.musicLayout);
|
||||
break;
|
||||
case "Browse":
|
||||
Navigate(Resource.Id.browseLayout);
|
||||
break;
|
||||
case "PlaylistTracks":
|
||||
Transition(Resource.Id.contentView, PlaylistTracks.instance, true);
|
||||
break;
|
||||
case "Queue":
|
||||
Navigate(Resource.Id.musicLayout);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -77,6 +77,8 @@ namespace MusicApp.Resources.Portable_Class
|
||||
|
||||
public void PopulateList()
|
||||
{
|
||||
musicList = new List<Song>();
|
||||
|
||||
Android.Net.Uri musicUri = MediaStore.Audio.Media.ExternalContentUri;
|
||||
|
||||
CursorLoader cursorLoader = new CursorLoader(Android.App.Application.Context, musicUri, null, null, null, null);
|
||||
|
||||
@@ -10,7 +10,6 @@ using Android.Widget;
|
||||
using MusicApp.Resources.values;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MusicApp.Resources.Portable_Class
|
||||
{
|
||||
|
||||
@@ -3,6 +3,7 @@ using Android.Content;
|
||||
using Android.Graphics;
|
||||
using Android.Support.V7.Widget;
|
||||
using Android.Views;
|
||||
using Android.Widget;
|
||||
using MusicApp.Resources.values;
|
||||
using Square.Picasso;
|
||||
using System;
|
||||
@@ -57,16 +58,13 @@ namespace MusicApp.Resources.Portable_Class
|
||||
Picasso.With(Application.Context).Load(songAlbumArtUri).Placeholder(Resource.Drawable.MusicIcon).Resize(400, 400).CenterCrop().Into(holder.AlbumArt);
|
||||
}
|
||||
|
||||
holder.more.Tag = position;
|
||||
if (!holder.more.HasOnClickListeners)
|
||||
{
|
||||
holder.more.Click += (sender, e) =>
|
||||
{
|
||||
Queue.instance?.More(songList[position]);
|
||||
Browse.instance?.More(songList[position]);
|
||||
YoutubeEngine.instance?.More(songList[position]);
|
||||
YtPlaylist.instance?.More(position);
|
||||
PlaylistTracks.instance?.More(songList[position], position);
|
||||
FolderTracks.instance?.More(songList[position]);
|
||||
int tagPosition = (int)((ImageView)sender).Tag;
|
||||
Queue.instance.More(songList[tagPosition]);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user