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

@@ -24,6 +24,7 @@ import android.telecom.Connection.VideoProvider;
import android.util.ArraySet;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Locale;
@@ -779,9 +780,9 @@ public abstract class Conference extends Conferenceable {
}
/**
* Removes an extra from this {@link Conference}.
* Removes extras from this {@link Conference}.
*
* @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 (keys == null || keys.isEmpty()) {
@@ -802,6 +803,15 @@ public abstract class Conference extends Conferenceable {
}
}
/**
* Removes extras from this {@link Conference}.
*
* @param keys The keys of the extras to remove.
*/
public final void removeExtras(String ... keys) {
removeExtras(Arrays.asList(keys));
}
/**
* Returns the extras associated with this conference.
* <p>