Skip to content

Commit 137ade2

Browse files
committed
Adjust javadoc format
1 parent ce91921 commit 137ade2

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

app/src/main/java/org/schabi/newpipe/player/PlayerService.java

+5-3
Original file line numberDiff line numberDiff line change
@@ -174,17 +174,19 @@ public IBinder onBind(final Intent intent) {
174174
return mBinder;
175175
}
176176

177-
/** Allows us this {@link org.schabi.newpipe.player.PlayerService} over the Service boundary
177+
/**
178+
* Allows us this {@link org.schabi.newpipe.player.PlayerService} over the Service boundary
178179
* back to our {@link org.schabi.newpipe.player.helper.PlayerHolder}.
179-
*/
180+
*/
180181
public static class LocalBinder extends Binder {
181182
private final WeakReference<PlayerService> playerService;
182183

183184
LocalBinder(final PlayerService playerService) {
184185
this.playerService = new WeakReference<>(playerService);
185186
}
186187

187-
/** Get the PlayerService object itself.
188+
/**
189+
* Get the PlayerService object itself.
188190
* @return this
189191
* */
190192
public @Nullable PlayerService getService() {

app/src/main/java/org/schabi/newpipe/player/helper/PlayerHolder.java

+12-6
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@
2424
import org.schabi.newpipe.player.event.PlayerHolderLifecycleEventListener;
2525
import 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+
*/
2931
public 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

Comments
 (0)