Add removeExtras(String...) prototype per API review.

Per API review, adding a convenience prototype of the removeExtras method.

Bug: 28295516
Change-Id: Icc0e040516c06205540c5683bde16882a73a89d6
This commit is contained in:
Tyler Gunn
2016-05-10 14:52:33 -07:00
parent d740e158cc
commit 071be6f42b
6 changed files with 46 additions and 7 deletions

View File

@@ -35,6 +35,7 @@ import android.util.ArraySet;
import android.view.Surface;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Set;
@@ -1972,9 +1973,9 @@ public abstract class Connection extends Conferenceable {
}
/**
* Removes an extra from this {@code Connection}.
* Removes extras from this {@code Connection}.
*
* @param keys The key of the extra key to remove.
* @param keys The keys of the extras to remove.
*/
public final void removeExtras(List<String> keys) {
if (mExtras != null) {
@@ -1992,6 +1993,15 @@ public abstract class Connection extends Conferenceable {
}
}
/**
* Removes extras from this {@code Connection}.
*
* @param keys The keys of the extras to remove.
*/
public final void removeExtras(String ... keys) {
removeExtras(Arrays.asList(keys));
}
/**
* Notifies this Connection that the {@link #getAudioState()} property has a new value.
*