Skip to content

Commit 317db71

Browse files
committed
Fix comments in PlayerUiList
1 parent 3f62ec7 commit 317db71

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

app/src/main/java/org/schabi/newpipe/player/ui/PlayerUiList.kt

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,7 @@ class PlayerUiList(vararg initialPlayerUis: PlayerUi) {
1818

1919
/**
2020
* Adds the provided player ui to the list and calls on it the initialization functions that
21-
/**
22-
* Creates a [PlayerUiList] starting with the provided player uis. The provided player uis
23-
* will not be prepared like those passed to [.addAndPrepare], because when
24-
* the [PlayerUiList] constructor is called, the player is still not running and it
25-
* wouldn't make sense to initialize uis then. Instead the player will initialize them by doing
26-
* proper calls to [.call].
27-
*
28-
* @param initialPlayerUis the player uis this list should start with; the order will be kept
29-
*/* apply based on the current player state. The preparation step needs to be done since when UIs
21+
* apply based on the current player state. The preparation step needs to be done since when UIs
3022
* are removed and re-added, the player will not call e.g. initPlayer again since the exoplayer
3123
* is already initialized, but we need to notify the newly built UI that the player is ready
3224
* nonetheless.
@@ -97,6 +89,9 @@ class PlayerUiList(vararg initialPlayerUis: PlayerUi) {
9789
return@runWithLockSync null
9890
}
9991

92+
/**
93+
* See [get] above
94+
*/
10095
fun <T : PlayerUi> get(playerUiType: Class<T>): T? =
10196
get(playerUiType.kotlin)
10297

0 commit comments

Comments
 (0)