Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
ofirelarat committed Dec 3, 2018
2 parents 0c7ceb3 + 70066f5 commit 940978c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions tubeLoadNative/tubeLoadNative.Droid/Activities/SongsPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,7 @@ void UpdateList()
int index = songsListView.FirstVisiblePosition;
View songView = songsListView.GetChildAt(0);
int top = (songView == null) ? 0 : songView.Top - songsListView.ListPaddingTop;

songs.ForEach((x) => x.Name.Replace(".mp3", string.Empty));

BaseAdapter adapter = new SongsAdapter(this, songs.ToArray());
songsListView.Adapter = adapter;

Expand All @@ -170,8 +169,7 @@ void FilterList(string filterText)
int index = songsListView.FirstVisiblePosition;
View songView = songsListView.GetChildAt(0);
int top = (songView == null) ? 0 : songView.Top - songsListView.ListPaddingTop;

songs.ForEach((x) => x.Name.Replace(".mp3", string.Empty));

BaseAdapter adapter = new SongsAdapter(this, songs.ToArray());
songsListView.Adapter = adapter;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public override View GetView(int position, View convertView, ViewGroup parent)
}

TextView songName = convertView.FindViewById<TextView>(Resource.Id.songName);
songName.Text = songs[position].Name;
songName.Text = songs[position].Name.Replace(".mp3", "");

if (mediaPlayer.CurrentSong != null && songs[position].Id.Equals(mediaPlayer.CurrentSong.Id))
{
Expand Down

0 comments on commit 940978c

Please sign in to comment.