mirror da
https://github.com/KokaKiwi/BarInsta
sincronizzato 2026-05-05 00:51:36 +00:00
Remove null check for player
Questo commit è contenuto in:
parent
f6a224ec01
commit
972c3f371c
1 ha cambiato i file con 17 aggiunte e 20 eliminazioni
|
|
@ -20,7 +20,6 @@ import com.google.android.exoplayer2.upstream.DataSource;
|
||||||
import com.google.android.exoplayer2.upstream.DefaultDataSourceFactory;
|
import com.google.android.exoplayer2.upstream.DefaultDataSourceFactory;
|
||||||
import com.google.android.exoplayer2.upstream.cache.CacheDataSourceFactory;
|
import com.google.android.exoplayer2.upstream.cache.CacheDataSourceFactory;
|
||||||
import com.google.android.exoplayer2.upstream.cache.SimpleCache;
|
import com.google.android.exoplayer2.upstream.cache.SimpleCache;
|
||||||
import com.google.android.exoplayer2.video.VideoListener;
|
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
@ -237,7 +236,6 @@ public class VideoAwareRecyclerScroller extends RecyclerView.OnScrollListener {
|
||||||
if (playerView == null) return;
|
if (playerView == null) return;
|
||||||
playerView.setPlayer(player);
|
playerView.setPlayer(player);
|
||||||
|
|
||||||
if (player != null) {
|
|
||||||
btnMute = itemView.findViewById(R.id.btnMute);
|
btnMute = itemView.findViewById(R.id.btnMute);
|
||||||
|
|
||||||
float vol = settingsHelper.getBoolean(Constants.MUTED_VIDEOS) ? 0f : 1f;
|
float vol = settingsHelper.getBoolean(Constants.MUTED_VIDEOS) ? 0f : 1f;
|
||||||
|
|
@ -259,7 +257,6 @@ public class VideoAwareRecyclerScroller extends RecyclerView.OnScrollListener {
|
||||||
|
|
||||||
playerView.setOnClickListener(v -> player.setPlayWhenReady(!player.getPlayWhenReady()));
|
playerView.setOnClickListener(v -> player.setPlayWhenReady(!player.getPlayWhenReady()));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (videoChangeCallback != null) videoChangeCallback.playerChanged(itemPos, player);
|
if (videoChangeCallback != null) videoChangeCallback.playerChanged(itemPos, player);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Caricamento…
Aggiungi tabella
Aggiungi collegamento
Crea riferimento in una nuova segnalazione