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

Commit 6f4a715b authored by Ravi Paluri's avatar Ravi Paluri
Browse files

IMS-VT: Refresh Add call option when Video call downgrades to VoLTE

"android.telecom.extra.DISABLE_ADD_CALL" extra guards the visibility
of "Add Call" option. The option will not be shown if the extra is
present and vice-versa. When call is downgraded, the extra is removed
but is not refreshing the "Add Call" option. Fix this by refreshing
"Add Call" option when the extra is removed.

Test: Manual
Bug: 70128952
Change-Id: Ie4c34e3d681c763009073ec6afee8e2c1fbdb04b
parent f0f43a1c
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1609,6 +1609,14 @@ public class CallsManager extends Call.ListenerBase
        }
    }

    @Override
    public void onExtrasRemoved(Call c, int source, List<String> keys) {
        if (source != Call.SOURCE_CONNECTION_SERVICE) {
            return;
        }
        updateCanAddCall();
    }

    @Override
    public void onExtrasChanged(Call c, int source, Bundle extras) {
        if (source != Call.SOURCE_CONNECTION_SERVICE) {