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

Commit dc59d419 authored by Narendra's avatar Narendra
Browse files

Fix conference call duration issue



The conf call start time is updated with a delay resulting
in abnormal display of the conf call duration.
Fixed by updating the duration only when the call start
time is non-zero.

Change-Id: I6a1b6c0ab0021d6e6e260bf1743487ec364366c4
Signed-off-by: default avatarNarendra <nagarw@codeaurora.org>
parent b94019f3
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -541,10 +541,12 @@ public class CallCardPresenter extends Presenter<CallCardPresenter.CallCardUi>
            mCallTimer.cancel();
        } else {
            final long callStart = mPrimary.getConnectTimeMillis();
            if (callStart > 0) {
                final long duration = System.currentTimeMillis() - callStart;
                ui.setPrimaryCallElapsedTime(true, duration);
            }
        }
    }

    public void onCallStateButtonTouched() {
        Intent broadcastIntent = ObjectFactory.getCallStateButtonBroadcastIntent(mContext);