Code cleanup

This commit is contained in:
CappielloAntonio 2022-01-03 15:29:32 +01:00
parent d8350ed281
commit aba5134469

View file

@ -21,10 +21,10 @@ import androidx.viewpager2.widget.ViewPager2;
import com.bumptech.glide.load.resource.bitmap.RoundedCorners; import com.bumptech.glide.load.resource.bitmap.RoundedCorners;
import com.cappielloantonio.play.R; import com.cappielloantonio.play.R;
import com.cappielloantonio.play.ui.fragment.pager.PlayerControllerVerticalPager;
import com.cappielloantonio.play.databinding.FragmentPlayerBottomSheetBinding; import com.cappielloantonio.play.databinding.FragmentPlayerBottomSheetBinding;
import com.cappielloantonio.play.glide.CustomGlideRequest; import com.cappielloantonio.play.glide.CustomGlideRequest;
import com.cappielloantonio.play.service.MediaService; import com.cappielloantonio.play.service.MediaService;
import com.cappielloantonio.play.ui.fragment.pager.PlayerControllerVerticalPager;
import com.cappielloantonio.play.util.MusicUtil; import com.cappielloantonio.play.util.MusicUtil;
import com.cappielloantonio.play.viewmodel.PlayerBottomSheetViewModel; import com.cappielloantonio.play.viewmodel.PlayerBottomSheetViewModel;
import com.google.common.util.concurrent.ListenableFuture; import com.google.common.util.concurrent.ListenableFuture;
@ -39,7 +39,6 @@ public class PlayerBottomSheetFragment extends Fragment {
private ListenableFuture<MediaBrowser> mediaBrowserListenableFuture; private ListenableFuture<MediaBrowser> mediaBrowserListenableFuture;
// TODO: Collegare la seekbar all'exo_progress // TODO: Collegare la seekbar all'exo_progress
// TODO: Fare in modo che quando sto vedendo il testo e il bottomsheet si abbassa, devo tornare alla prima pagina
@Override @Override
public void onCreate(@Nullable Bundle savedInstanceState) { public void onCreate(@Nullable Bundle savedInstanceState) {
@ -126,7 +125,6 @@ public class PlayerBottomSheetFragment extends Fragment {
setPlayingState(isPlaying); setPlayingState(isPlaying);
} }
//TODO: Temporary solution. Too many events are caught in this way.
@Override @Override
public void onEvents(Player player, Player.Events events) { public void onEvents(Player player, Player.Events events) {
setHeaderNextButtonState(mediaBrowser.hasNextMediaItem()); setHeaderNextButtonState(mediaBrowser.hasNextMediaItem());