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

Commit f4465bb2 authored by Yorke Lee's avatar Yorke Lee
Browse files

Don't cancel incall notification unnecessarily

This code path happens ~8 times in the outgoing call process
and causes unnecessary binder transactions

Bug: 18373617
Change-Id: I179159df396fcbbae306c5599f59b24f3addc56f
parent 32a9538c
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -148,8 +148,10 @@ public class StatusBarNotifier implements InCallPresenter.InCallStateListener {
     * @see #updateInCallNotification(InCallState,CallList)
     */
    private void cancelInCall() {
        if (mIsShowingNotification) {
            Log.d(this, "cancelInCall()...");
            mNotificationManager.cancel(IN_CALL_NOTIFICATION);
        }
        mIsShowingNotification = false;
    }