Skip to content

Commit

Permalink
fix: crash when skip buttons enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Bnyro committed May 8, 2024
1 parent 76ce5c3 commit 698b004
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ package com.github.libretube.ui.views

import android.content.Context
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.text.format.DateUtils
import android.util.AttributeSet
import android.view.Window
Expand Down Expand Up @@ -40,6 +42,8 @@ class OnlinePlayerView(
private var trackSelector: TrackSelector? = null
private var viewLifecycleOwner: LifecycleOwner? = null

private val handler = Handler(Looper.getMainLooper())

/**
* The window that needs to be addressed for showing and hiding the system bars
* If null, the activity's default/main window will be used
Expand Down

0 comments on commit 698b004

Please sign in to comment.