diff options
Diffstat (limited to 'java/com/android/incallui/contactgrid/BottomRow.java')
-rw-r--r-- | java/com/android/incallui/contactgrid/BottomRow.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/java/com/android/incallui/contactgrid/BottomRow.java b/java/com/android/incallui/contactgrid/BottomRow.java index 610eeca39..dc86d819b 100644 --- a/java/com/android/incallui/contactgrid/BottomRow.java +++ b/java/com/android/incallui/contactgrid/BottomRow.java @@ -74,11 +74,11 @@ public class BottomRow { public static Info getInfo(Context context, PrimaryCallState state, PrimaryInfo primaryInfo) { CharSequence label; - boolean isTimerVisible = state.state == State.ACTIVE; - boolean isForwardIconVisible = state.isForwardedNumber; - boolean isWorkIconVisible = state.isWorkCall; - boolean isHdIconVisible = state.isHdAudioCall && !isForwardIconVisible; - boolean isHdAttemptingIconVisible = state.isHdAttempting; + boolean isTimerVisible = state.state() == State.ACTIVE; + boolean isForwardIconVisible = state.isForwardedNumber(); + boolean isWorkIconVisible = state.isWorkCall(); + boolean isHdIconVisible = state.isHdAudioCall() && !isForwardIconVisible; + boolean isHdAttemptingIconVisible = state.isHdAttempting(); boolean isSpamIconVisible = false; boolean shouldPopulateAccessibilityEvent = true; @@ -86,14 +86,14 @@ public class BottomRow { label = context.getString(R.string.contact_grid_incoming_suspected_spam); isSpamIconVisible = true; isHdIconVisible = false; - } else if (state.state == State.DISCONNECTING) { + } else if (state.state() == State.DISCONNECTING) { // While in the DISCONNECTING state we display a "Hanging up" message in order to make the UI // feel more responsive. (In GSM it's normal to see a delay of a couple of seconds while // negotiating the disconnect with the network, so the "Hanging up" state at least lets the // user know that we're doing something. This state is currently not used with CDMA.) label = context.getString(R.string.incall_hanging_up); - } else if (state.state == State.DISCONNECTED) { - label = state.disconnectCause.getLabel(); + } else if (state.state() == State.DISCONNECTED) { + label = state.disconnectCause().getLabel(); if (TextUtils.isEmpty(label)) { label = context.getString(R.string.incall_call_ended); } @@ -134,6 +134,6 @@ public class BottomRow { } private static boolean isIncoming(PrimaryCallState state) { - return state.state == State.INCOMING || state.state == State.CALL_WAITING; + return state.state() == State.INCOMING || state.state() == State.CALL_WAITING; } } |