Skip to content

Commit df76d6d

Browse files
maniac103firebird11
authored andcommitted
Fix call buttons being incorrectly hidden.
They were hidden incorrectly when having full-screen caller photo enabled and an outgoing call is terminated without being answered. Change-Id: I817a1f8d37c83aabb5470ee1ed6329b79302d338
1 parent ab2543a commit df76d6d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/com/android/incallui/CallButtonPresenter.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,9 @@ private void updateUi(InCallState state, Call call) {
280280
} else { // DISCONNECTING, NO_CALLS
281281
// Keep UI visible in case it was visible before, don't cause
282282
// unneccessary layout changes
283-
isVisible = mStateBeforeDisconnect == InCallState.INCALL;
283+
isVisible = mStateBeforeDisconnect != null &&
284+
!mStateBeforeDisconnect.isIncoming() &&
285+
mStateBeforeDisconnect.isConnectingOrConnected();
284286
}
285287

286288
ui.setEnabled(isEnabled, isVisible);

0 commit comments

Comments
 (0)