mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Make constructor in EventDispatcher public.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=190907004
This commit is contained in:
parent
4db6d6fbaa
commit
09cf927713
@ -266,7 +266,7 @@ public interface MediaSourceEventListener {
|
|||||||
private final long mediaTimeOffsetMs;
|
private final long mediaTimeOffsetMs;
|
||||||
|
|
||||||
/** Creates an event dispatcher. */
|
/** Creates an event dispatcher. */
|
||||||
/* package */ EventDispatcher() {
|
public EventDispatcher() {
|
||||||
this(
|
this(
|
||||||
/* listenerAndHandlers= */ new CopyOnWriteArrayList<ListenerAndHandler>(),
|
/* listenerAndHandlers= */ new CopyOnWriteArrayList<ListenerAndHandler>(),
|
||||||
/* windowIndex= */ 0,
|
/* windowIndex= */ 0,
|
||||||
@ -295,7 +295,7 @@ public interface MediaSourceEventListener {
|
|||||||
* @return A view of the event dispatcher with the pre-configured parameters.
|
* @return A view of the event dispatcher with the pre-configured parameters.
|
||||||
*/
|
*/
|
||||||
@CheckResult
|
@CheckResult
|
||||||
/* package */ EventDispatcher withParameters(
|
public EventDispatcher withParameters(
|
||||||
int windowIndex, @Nullable MediaPeriodId mediaPeriodId, long mediaTimeOffsetMs) {
|
int windowIndex, @Nullable MediaPeriodId mediaPeriodId, long mediaTimeOffsetMs) {
|
||||||
return new EventDispatcher(
|
return new EventDispatcher(
|
||||||
listenerAndHandlers, windowIndex, mediaPeriodId, mediaTimeOffsetMs);
|
listenerAndHandlers, windowIndex, mediaPeriodId, mediaTimeOffsetMs);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user