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

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

DO NOT MERGE Don't hide caller photo for video call

Bug: 19728020
Change-Id: I6e5259c63553de9e5060621bcc749d1039b67ea1
parent 8f299d48
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -787,16 +787,6 @@ public class CallCardFragment extends BaseFragment<CallCardPresenter, CallCardPr
        }
    }

    /**
     * Changes the visibility of the contact photo.
     *
     * @param isVisible {@code True} if the UI should show the contact photo.
     */
    @Override
    public void setPhotoVisible(boolean isVisible) {
        mPhoto.setVisibility(isVisible ? View.VISIBLE : View.GONE);
    }

    /**
     * Changes the visibility of the HD audio icon.
     *
+0 −9
Original line number Diff line number Diff line
@@ -250,14 +250,6 @@ public class CallCardPresenter extends Presenter<CallCardPresenter.CallCardUi>
            getUi().showHdAudioIndicator(false);
        }

        // Hide/show the contact photo based on the video state.
        // If the primary call is a video call on hold, still show the contact photo.
        // If the primary call is an active video call, hide the contact photo.
        if (mPrimary != null) {
            getUi().setPhotoVisible(!(mPrimary.isVideoCall(mContext) &&
                    callState != Call.State.ONHOLD));
        }

        maybeShowManageConferenceCallButton();

        final boolean enableEndCallButton = Call.State.isConnectingOrConnected(callState) &&
@@ -794,7 +786,6 @@ public class CallCardPresenter extends Presenter<CallCardPresenter.CallCardUi>
        void setPrimaryLabel(String label);
        void setEndCallButtonEnabled(boolean enabled, boolean animate);
        void setCallbackNumber(String number, boolean isEmergencyCalls);
        void setPhotoVisible(boolean isVisible);
        void setProgressSpinnerVisible(boolean visible);
        void showHdAudioIndicator(boolean visible);
        void showManageConferenceCallButton(boolean visible);