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

Commit 33aa928d authored by Jaewan Kim's avatar Jaewan Kim Committed by android-build-merger
Browse files

Merge "MediaSession2: Change return type of CommandGroup#getCommands()" into pi-dev am: d21b33d8

am: d3cc889f

Change-Id: I45eee1b4aa2a59f5d1e59f52ae83c94f6f097708
parents e1dfa809 d3cc889f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -45,6 +45,7 @@ import android.os.ResultReceiver;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.List;
import java.util.Set;
import java.util.concurrent.Executor;

/**
@@ -557,7 +558,7 @@ public class MediaSession2 implements AutoCloseable {
            return mProvider.hasCommand_impl(code);
        }

        public @NonNull List<Command> getCommands() {
        public @NonNull Set<Command> getCommands() {
            return mProvider.getCommands_impl();
        }

+2 −1
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@ import android.os.Bundle;
import android.os.ResultReceiver;

import java.util.List;
import java.util.Set;
import java.util.concurrent.Executor;

/**
@@ -87,7 +88,7 @@ public interface MediaSession2Provider extends TransportControlProvider {
        void removeCommand_impl(Command command);
        boolean hasCommand_impl(Command command);
        boolean hasCommand_impl(int code);
        List<Command> getCommands_impl();
        Set<Command> getCommands_impl();
        Bundle toBundle_impl();
    }