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

Commit 20bb2296 authored by John Wang's avatar John Wang
Browse files

Add API to get all foreground calls.

Change-Id: I38293b2d7841f5d8708a7b9b516f686ab15de2b1
parent 17510863
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -1108,14 +1108,21 @@ public final class CallManager {
     */

    /**
     * @return list of ringing calls
     * @return list of all ringing calls
     */
    public ArrayList<Call> getRingingCalls() {
        return mRingingCalls;
    }

    /**
     * @return list of background calls
     * @return list of all foreground calls
     */
    public ArrayList<Call> getForegroundCalls() {
        return mForegroundCalls;
    }

    /**
     * @return list of all background calls
     */
    public ArrayList<Call> getBackgroundCalls() {
        return mBackgroundCalls;