am e7b92d7b: Merge "Return immutable copies of private callList." into gingerbread
Merge commit 'e7b92d7b53343119173558302ecfb3986ae0fbd6' into gingerbread-plus-aosp * commit 'e7b92d7b53343119173558302ecfb3986ae0fbd6': Return immutable copies of private callList.
This commit is contained in:
@@ -1144,22 +1144,22 @@ public final class CallManager {
|
|||||||
/**
|
/**
|
||||||
* @return list of all ringing calls
|
* @return list of all ringing calls
|
||||||
*/
|
*/
|
||||||
public ArrayList<Call> getRingingCalls() {
|
public List<Call> getRingingCalls() {
|
||||||
return mRingingCalls;
|
return Collections.unmodifiableList(mRingingCalls);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return list of all foreground calls
|
* @return list of all foreground calls
|
||||||
*/
|
*/
|
||||||
public ArrayList<Call> getForegroundCalls() {
|
public List<Call> getForegroundCalls() {
|
||||||
return mForegroundCalls;
|
return Collections.unmodifiableList(mForegroundCalls);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return list of all background calls
|
* @return list of all background calls
|
||||||
*/
|
*/
|
||||||
public ArrayList<Call> getBackgroundCalls() {
|
public List<Call> getBackgroundCalls() {
|
||||||
return mBackgroundCalls;
|
return Collections.unmodifiableList(mBackgroundCalls);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1269,7 +1269,7 @@ public final class CallManager {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the connections of active foreground call
|
* @return the connections of active foreground call
|
||||||
* return null if there is no active foreground call
|
* return empty list if there is no active foreground call
|
||||||
*/
|
*/
|
||||||
public List<Connection> getFgCallConnections() {
|
public List<Connection> getFgCallConnections() {
|
||||||
Call fgCall = getActiveFgCall();
|
Call fgCall = getActiveFgCall();
|
||||||
|
|||||||
Reference in New Issue
Block a user