2424import org .schabi .newpipe .player .event .PlayerHolderLifecycleEventListener ;
2525import org .schabi .newpipe .player .playqueue .PlayQueue ;
2626
27- /** Singleton that manages a `PlayerService`
28- * and can be used to control the player instance through the service. */
27+ /**
28+ * Singleton that manages a `PlayerService`
29+ * and can be used to control the player instance through the service.
30+ */
2931public final class PlayerHolder {
3032
3133 private PlayerHolder () {
@@ -121,7 +123,8 @@ public void setListener(@NonNull final PlayerServiceEventListener newListener,
121123 }
122124 }
123125
124- /** Helper to handle context in common place as using the same
126+ /**
127+ * Helper to handle context in common place as using the same
125128 * context to bind/unbind a service is crucial.
126129 *
127130 * @return the common context
@@ -131,7 +134,8 @@ private Context getCommonContext() {
131134 }
132135
133136
134- /** Connect to (and if needed start) the {@link PlayerService}
137+ /**
138+ * Connect to (and if needed start) the {@link PlayerService}
135139 * and bind {@link PlayerServiceConnection} to it.
136140 * If the service is already started, only set the listener.
137141 * @param playAfterConnect If the service is started, start playing immediately
@@ -172,7 +176,8 @@ public void stopService() {
172176 context .stopService (new Intent (context , PlayerService .class ));
173177 }
174178
175- /** Call {@link Context#unbindService(ServiceConnection)} on our service
179+ /**
180+ * Call {@link Context#unbindService(ServiceConnection)} on our service
176181 * (does not necesarily stop the service right away).
177182 * Remove all our listeners and deinitialize them.
178183 * @param context shared context
@@ -229,7 +234,8 @@ public void onServiceConnected(final ComponentName compName, final IBinder servi
229234 }
230235 }
231236
232- /** Delegate all {@link PlayerServiceEventListener} events to our current `listener` object.
237+ /**
238+ * Delegate all {@link PlayerServiceEventListener} events to our current `listener` object.
233239 * Only difference is that if {@link PlayerServiceEventListener#onServiceStopped()} is called,
234240 * it also calls {@link PlayerHolder#unbind(Context)}.
235241 * */
0 commit comments