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

Commit 4c571a62 authored by Chung-yih Wang's avatar Chung-yih Wang
Browse files

Fix the build.

Change-Id: I6e3f683be22ab834ca1b83a1dbb0b3acd62645d2
parent 51aaab3d
Loading
Loading
Loading
Loading
+0 −21
Original line number Diff line number Diff line
@@ -355,27 +355,6 @@ public final class CallManager {
        return getFirstActiveRingingCall().getPhone();
    }

    /**
     * unregister phone from CallManager
     * @param phone
     */
    public void unregisterPhone(Phone phone) {
        if (phone != null && mPhones.contains(phone)) {
            mPhones.remove(phone);
            mRingingCalls.remove(phone.getRingingCall());
            mBackgroundCalls.remove(phone.getBackgroundCall());
            mForegroundCalls.remove(phone.getForegroundCall());
            unregisterForPhoneStates(phone);
            if (phone == mDefaultPhone) {
                if (mPhones.isEmpty()) {
                    mDefaultPhone = null;
                } else {
                    mDefaultPhone = mPhones.get(0);
                }
            }
        }
    }

    public void setAudioMode() {
        Context context = getContext();
        if (context == null) return;