add Shuffle and Repeat buttons

This commit is contained in:
tibbi 2018-02-07 23:50:08 +01:00
parent da73d4ec88
commit 984a7171b6
10 changed files with 7 additions and 0 deletions

View file

@ -84,9 +84,12 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
}
}
shuffle_btn.setOnClickListener { }
previous_btn.setOnClickListener { sendIntent(PREVIOUS) }
play_pause_btn.setOnClickListener { sendIntent(PLAYPAUSE) }
next_btn.setOnClickListener { sendIntent(NEXT) }
repeat_btn.setOnClickListener { }
songs_playlist_empty_add_folder.setOnClickListener { addFolderToPlaylist() }
volumeControlStream = AudioManager.STREAM_MUSIC
checkWhatsNewDialog()
@ -392,9 +395,11 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
private fun setupIconColors() {
val textColor = config.textColor
shuffle_btn.applyColorFilter(textColor)
previous_btn.applyColorFilter(textColor)
play_pause_btn.applyColorFilter(textColor)
next_btn.applyColorFilter(textColor)
repeat_btn.applyColorFilter(textColor)
getSongsAdapter()?.textColor = textColor
songs_fastscroller.updatePrimaryColor()

View file

@ -284,9 +284,11 @@ class SongAdapter(activity: SimpleActivity, var songs: ArrayList<Song>, val list
play_pause_btn.setOnClickListener { activity.sendIntent(PLAYPAUSE) }
next_btn.setOnClickListener { activity.sendIntent(NEXT) }
shuffle_btn.applyColorFilter(textColor)
previous_btn.applyColorFilter(textColor)
play_pause_btn.applyColorFilter(textColor)
next_btn.applyColorFilter(textColor)
repeat_btn.applyColorFilter(textColor)
song_info_title.setTextColor(textColor)
song_info_artist.setTextColor(textColor)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 656 B

After

Width:  |  Height:  |  Size: 577 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 649 B

After

Width:  |  Height:  |  Size: 550 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 717 B

After

Width:  |  Height:  |  Size: 645 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 822 B

After

Width:  |  Height:  |  Size: 644 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 818 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 887 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 953 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB