mirror of
https://github.com/yuliskov/SmartTube.git
synced 2026-01-07 22:40:31 -06:00
speed fix
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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. -->
|
||||
|
||||
|
||||
Reference in New Issue
Block a user