mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Filter media notification actions
The DefaultMediaNotificationProvider checks if a command is available before putting the respective action in the notification. PiperOrigin-RevId: 440114422
This commit is contained in:
parent
4b46acef9c
commit
005882e6cf
1 changed files with 5 additions and 0 deletions
|
|
@ -521,6 +521,11 @@ public interface Player {
|
||||||
return flags.contains(command);
|
return flags.contains(command);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Returns whether the set of commands contains at least one of the given {@code commands}. */
|
||||||
|
public boolean containsAny(@Command int... commands) {
|
||||||
|
return flags.containsAny(commands);
|
||||||
|
}
|
||||||
|
|
||||||
/** Returns the number of commands in this set. */
|
/** Returns the number of commands in this set. */
|
||||||
public int size() {
|
public int size() {
|
||||||
return flags.size();
|
return flags.size();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue