feat: parameterized track sharing feature

This commit is contained in:
antonio 2023-09-17 18:51:22 +02:00
parent 8ab011781e
commit 0fe4636fe1
10 changed files with 55 additions and 17 deletions

View file

@ -22,6 +22,7 @@ import com.cappielloantonio.tempo.interfaces.PlaylistCallback;
import com.cappielloantonio.tempo.ui.adapter.PlaylistDialogSongHorizontalAdapter;
import com.cappielloantonio.tempo.util.Constants;
import com.cappielloantonio.tempo.util.MusicUtil;
import com.cappielloantonio.tempo.util.Preferences;
import com.cappielloantonio.tempo.viewmodel.PlaylistEditorViewModel;
import java.util.Collections;
@ -111,6 +112,8 @@ public class PlaylistEditorDialog extends DialogFragment {
clipboardManager.setPrimaryClip(clipData);
});
});
bind.playlistShareButton.setVisibility(Preferences.isSharingEnabled() ? View.VISIBLE : View.GONE);
}
private void initSongsView() {