mirror of
https://github.com/yuliskov/SmartTube.git
synced 2026-01-06 05:50:31 -06:00
crash fixes
This commit is contained in:
@@ -263,6 +263,10 @@ public class VideoStateController extends BasePlayerController {
|
||||
|
||||
@Override
|
||||
public void onSpeedClicked(boolean enabled) {
|
||||
if (getVideo() == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
float lastSpeed = getPlayerData().getSpeed(getVideo().channelId);
|
||||
if (Helpers.floatEquals(lastSpeed, 1.0f)) {
|
||||
lastSpeed = getPlayerData().getLastSpeed();
|
||||
|
||||
Reference in New Issue
Block a user