Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9839414d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove unnecesaary constants of Session2Command"

parents 954fc33e 2d4fe896
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -643,7 +643,7 @@ public class MediaSession2 implements AutoCloseable {
    public abstract static class SessionCallback {
        /**
         * Called when a controller is created for this session. Return allowed commands for
         * controller. By default it allows all connection requests and commands.
         * controller. By default it returns {@code null}.
         * <p>
         * You can reject the connection by returning {@code null}. In that case, controller
         * receives {@link MediaController2.ControllerCallback#onDisconnected(MediaController2)}
@@ -656,10 +656,7 @@ public class MediaSession2 implements AutoCloseable {
        @Nullable
        public Session2CommandGroup onConnect(@NonNull MediaSession2 session,
                @NonNull ControllerInfo controller) {
            Session2CommandGroup commands = new Session2CommandGroup.Builder()
                    .addAllPredefinedCommands(Session2Command.COMMAND_VERSION_1)
                    .build();
            return commands;
            return null;
        }

        /**
+9 −537

File changed.

Preview size limit exceeded, changes collapsed.

+14 −112

File changed.

Preview size limit exceeded, changes collapsed.

+5 −5

File changed.

Contains only whitespace changes.