Skip to content

Commit 859555e

Browse files
litetexStypox
authored andcommitted
Use regions
1 parent 71fcc5e commit 859555e

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

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

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@ public final class PlayerHelper {
8989
private PlayerHelper() {
9090
}
9191

92-
////////////////////////////////////////////////////////////////////////////
93-
// Exposed helpers
94-
////////////////////////////////////////////////////////////////////////////
92+
// region Exposed helpers
9593

9694
@NonNull
9795
public static String getTimeString(final int milliSeconds) {
@@ -219,9 +217,8 @@ public static PlayQueue autoQueueOf(@NonNull final StreamInfo info,
219217
? null : getAutoQueuedSinglePlayQueue(autoQueueItems.get(0));
220218
}
221219

222-
////////////////////////////////////////////////////////////////////////////
223-
// Settings Resolution
224-
////////////////////////////////////////////////////////////////////////////
220+
// endregion
221+
// region Resolution
225222

226223
public static boolean isResumeAfterAudioFocusGain(@NonNull final Context context) {
227224
return getPreferences(context)
@@ -405,9 +402,8 @@ public static int getProgressiveLoadIntervalBytes(@NonNull final Context context
405402
return Integer.parseInt(preferredIntervalBytes) * 1024;
406403
}
407404

408-
////////////////////////////////////////////////////////////////////////////
409-
// Private helpers
410-
////////////////////////////////////////////////////////////////////////////
405+
// endregion
406+
// region Private helpers
411407

412408
@NonNull
413409
private static SharedPreferences getPreferences(@NonNull final Context context) {
@@ -427,9 +423,8 @@ private static SinglePlayQueue getAutoQueuedSinglePlayQueue(
427423
}
428424

429425

430-
////////////////////////////////////////////////////////////////////////////
431-
// Utils used by player
432-
////////////////////////////////////////////////////////////////////////////
426+
// endregion
427+
// region Utils used by player
433428

434429
@RepeatMode
435430
public static int nextRepeatMode(@RepeatMode final int repeatMode) {
@@ -503,4 +498,6 @@ public static int retrieveSeekDurationFromPreferences(final Player player) {
503498
player.getContext().getString(R.string.seek_duration_key),
504499
player.getContext().getString(R.string.seek_duration_default_value))));
505500
}
501+
502+
// endregion
506503
}

0 commit comments

Comments
 (0)