speed fix

This commit is contained in:
Yuriy Liskov
2020-10-03 20:05:41 +03:00
parent c543f03e6e
commit f64de8f585
3 changed files with 6 additions and 0 deletions

View File

@@ -206,6 +206,8 @@ public class StateUpdater extends PlayerEventListenerHelper {
private void restoreSpeed() {
if (mController.getLengthMs() - mController.getPositionMs() > 30_000) {
mController.setSpeed(mSpeed);
} else {
mController.setSpeed(1.0f); // speed may be changed before, so do reset to default
}
}

View File

@@ -15,6 +15,8 @@
limitations under the License.
-->
<!-- Note: class names was changed to locale ones -->
<com.liskovsoft.smartyoutubetv2.tv.ui.mod.leanback.playerglue.ControlBar xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/control_bar"
android:layout_width="wrap_content"

View File

@@ -15,6 +15,8 @@
~ limitations under the License.
-->
<!-- Note: class names was changed to locale ones -->
<!-- Note: clipChildren/clipToPadding false are needed to apply shadows to child
views with no padding of their own. Also to allow for negative margin on description. -->