From 29eebca5c5c656637d1a305d101c7a1089b30d43 Mon Sep 17 00:00:00 2001 From: aquilescanta Date: Mon, 7 Oct 2019 13:41:44 +0100 Subject: [PATCH] Fix section comments in CastPlayer PiperOrigin-RevId: 273270892 --- .../exoplayer2/ext/cast/CastPlayer.java | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/extensions/cast/src/main/java/com/google/android/exoplayer2/ext/cast/CastPlayer.java b/extensions/cast/src/main/java/com/google/android/exoplayer2/ext/cast/CastPlayer.java index 2210f2c8b2..3921dbab08 100644 --- a/extensions/cast/src/main/java/com/google/android/exoplayer2/ext/cast/CastPlayer.java +++ b/extensions/cast/src/main/java/com/google/android/exoplayer2/ext/cast/CastPlayer.java @@ -771,8 +771,26 @@ public final class CastPlayer extends BasePlayer { } } - private final class StatusListener implements RemoteMediaClient.Listener, - SessionManagerListener, RemoteMediaClient.ProgressListener { + private void flushNotifications() { + boolean recursiveNotification = !ongoingNotificationsTasks.isEmpty(); + ongoingNotificationsTasks.addAll(notificationsBatch); + notificationsBatch.clear(); + if (recursiveNotification) { + // This will be handled once the current notification task is finished. + return; + } + while (!ongoingNotificationsTasks.isEmpty()) { + ongoingNotificationsTasks.peekFirst().execute(); + ongoingNotificationsTasks.removeFirst(); + } + } + + // Internal classes. + + private final class StatusListener + implements RemoteMediaClient.Listener, + SessionManagerListener, + RemoteMediaClient.ProgressListener { // RemoteMediaClient.ProgressListener implementation. @@ -856,24 +874,6 @@ public final class CastPlayer extends BasePlayer { } - // Internal methods. - - private void flushNotifications() { - boolean recursiveNotification = !ongoingNotificationsTasks.isEmpty(); - ongoingNotificationsTasks.addAll(notificationsBatch); - notificationsBatch.clear(); - if (recursiveNotification) { - // This will be handled once the current notification task is finished. - return; - } - while (!ongoingNotificationsTasks.isEmpty()) { - ongoingNotificationsTasks.peekFirst().execute(); - ongoingNotificationsTasks.removeFirst(); - } - } - - // Internal classes. - private final class SeekResultCallback implements ResultCallback { @Override