File tree Expand file tree Collapse file tree
core/src/main/java/xyz/gianlu/librespot Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 */
1010public final class RestrictionsManager {
1111 public static final String REASON_ENDLESS_CONTEXT = "endless_context" ;
12- public static final String REASON_NOT_PAUSED = "not_paused" ;
13- public static final String REASON_ALREADY_PAUSED = "already_paused" ;
1412 public static final String REASON_NO_PREV_TRACK = "no_prev_track" ;
1513 public static final String REASON_NO_NEXT_TRACK = "no_next_track" ;
1614 private final Player .Restrictions .Builder restrictions ;
Original file line number Diff line number Diff line change @@ -230,11 +230,6 @@ private void setContext(@NotNull Context ctx) {
230230 private void updateRestrictions () {
231231 if (context == null ) return ;
232232
233- if (isPaused ()) context .restrictions .disallow (Action .PAUSE , RestrictionsManager .REASON_ALREADY_PAUSED );
234- else context .restrictions .allow (Action .PAUSE );
235- if (isPlaying ()) context .restrictions .disallow (Action .RESUME , RestrictionsManager .REASON_NOT_PAUSED );
236- else context .restrictions .allow (Action .RESUME );
237-
238233 if (tracksKeeper .isPlayingFirst () && !isRepeatingContext ())
239234 context .restrictions .disallow (Action .SKIP_PREV , RestrictionsManager .REASON_NO_PREV_TRACK );
240235 else
You can’t perform that action at this time.
0 commit comments