Replaced the download icons in the menus with the three dots

This commit is contained in:
CappielloAntonio 2021-09-01 17:55:02 +02:00
parent d78668d6c5
commit eeae6bbce5
5 changed files with 11 additions and 4 deletions

View file

@ -34,6 +34,7 @@ import com.cappielloantonio.play.util.MusicUtil;
import com.cappielloantonio.play.viewmodel.AlbumPageViewModel;
import java.util.Collections;
import java.util.Objects;
public class AlbumPageFragment extends Fragment {
private static final String TAG = "AlbumPageFragment";
@ -122,6 +123,8 @@ public class AlbumPageFragment extends Fragment {
bind.albumReleaseYearLabel.setText(albumPageViewModel.getAlbum().getYear() != 0 ? String.valueOf(albumPageViewModel.getAlbum().getYear()) : "");
bind.animToolbar.setNavigationOnClickListener(v -> activity.navController.navigateUp());
Objects.requireNonNull(bind.animToolbar.getOverflowIcon()).setTint(requireContext().getResources().getColor(R.color.titleTextColor, null));
}
private void initAlbumInfoTextButton() {

View file

@ -30,6 +30,7 @@ import com.cappielloantonio.play.util.MusicUtil;
import com.cappielloantonio.play.viewmodel.PlaylistPageViewModel;
import java.util.Collections;
import java.util.Objects;
public class PlaylistPageFragment extends Fragment {
@ -112,6 +113,8 @@ public class PlaylistPageFragment extends Fragment {
bind.playlistDurationLabel.setText("Playlist duration: " + MusicUtil.getReadableDurationString(playlistPageViewModel.getPlaylist().getDuration(), false));
bind.animToolbar.setNavigationOnClickListener(v -> activity.navController.navigateUp());
Objects.requireNonNull(bind.animToolbar.getOverflowIcon()).setTint(requireContext().getResources().getColor(R.color.titleTextColor, null));
}
private void initMusicButton() {

View file

@ -5,6 +5,6 @@
android:id="@+id/action_download_album"
android:icon="@drawable/ic_file_download"
android:iconTint="@color/titleTextColor"
android:title="Download"
app:showAsAction="always" />
android:title="Download all"
app:showAsAction="never" />
</menu>

View file

@ -5,6 +5,6 @@
android:id="@+id/action_download_playlist"
android:icon="@drawable/ic_file_download"
android:iconTint="@color/titleTextColor"
android:title="Download"
app:showAsAction="always" />
android:title="Download all"
app:showAsAction="never" />
</menu>