From de312eb768a68b5b105fc9d426785fb75e791cbf Mon Sep 17 00:00:00 2001 From: TobiGr Date: Thu, 8 Jul 2021 10:27:37 +0200 Subject: [PATCH] Fix ClassCastException See https://github.com/TeamNewPipe/NewPipe/issues/6577#issuecomment-876095378 java.lang.ClassCastException: android.widget.ImageButton cannot be cast to androidx.appcompat.widget.AppCompatImageButton at org.schabi.newpipe.player.Player.onRepeatModeChanged(Player.java:2263) at com.google.android.exoplayer2.ExoPlayerImpl.lambda$setRepeatMode$2(ExoPlayerImpl.java:564) at com.google.android.exoplayer2.-$$Lambda$ExoPlayerImpl$rgrcbaqP9Y8LgzdByBnAfUO4ydU.invokeListener(lambda) at com.google.android.exoplayer2.BasePlayer$ListenerHolder.invoke(BasePlayer.java:279) at com.google.android.exoplayer2.ExoPlayerImpl.invokeAll(ExoPlayerImpl.java:1498) at com.google.android.exoplayer2.ExoPlayerImpl.lambda$notifyListeners$6(ExoPlayerImpl.java:1318) at com.google.android.exoplayer2.-$$Lambda$ExoPlayerImpl$b59raXxaB-trjwE5bgpZInm1QnU.run(lambda) at com.google.android.exoplayer2.ExoPlayerImpl.notifyListeners(ExoPlayerImpl.java:1328) at com.google.android.exoplayer2.ExoPlayerImpl.notifyListeners(ExoPlayerImpl.java:1318) at com.google.android.exoplayer2.ExoPlayerImpl.setRepeatMode(ExoPlayerImpl.java:564) at com.google.android.exoplayer2.SimpleExoPlayer.setRepeatMode(SimpleExoPlayer.java:1636) at org.schabi.newpipe.player.Player.setRepeatMode(Player.java:2253) at org.schabi.newpipe.player.Player.onRepeatClicked(Player.java:2232) at org.schabi.newpipe.player.Player.onBroadcastReceived(Player.java:1123) at org.schabi.newpipe.player.Player.access$200(Player.java:190) at org.schabi.newpipe.player.Player$3.onReceive(Player.java:1060) at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:1185) ... 7 more --- app/src/main/res/layout-large-land/player.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/res/layout-large-land/player.xml b/app/src/main/res/layout-large-land/player.xml index 4283cb9db..e3377f831 100644 --- a/app/src/main/res/layout-large-land/player.xml +++ b/app/src/main/res/layout-large-land/player.xml @@ -531,7 +531,7 @@ app:tint="@color/white" app:srcCompat="@drawable/ic_close" /> -