diff options
author | Android Dialer <noreply@google.com> | 2018-02-26 13:29:09 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-02-26 14:24:23 -0800 |
commit | 31fe99856b34854bd36a17d02b774095dcfe51a6 (patch) | |
tree | 54e027c351b2b7e4c9f226ad178c16d4dd183cdf /java/com/android/incallui/rtt/impl/RttChatFragment.java | |
parent | b2c8e1c635c5c1803ef712e29f46a0ebf172cf27 (diff) |
Updating PrimaryCallState value class to use AutoValue with builder pattern.
Bug: 34502119
Test: BottomRowTest,CallCardPresenterTest,PrimaryCallStateTest,TopRowTest
PiperOrigin-RevId: 187071451
Change-Id: Ib1b4baee397f61eade84bf1a887596dddc37230a
Diffstat (limited to 'java/com/android/incallui/rtt/impl/RttChatFragment.java')
-rw-r--r-- | java/com/android/incallui/rtt/impl/RttChatFragment.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/com/android/incallui/rtt/impl/RttChatFragment.java b/java/com/android/incallui/rtt/impl/RttChatFragment.java index 2c8de09f4..deb205ce6 100644 --- a/java/com/android/incallui/rtt/impl/RttChatFragment.java +++ b/java/com/android/incallui/rtt/impl/RttChatFragment.java @@ -288,11 +288,11 @@ public class RttChatFragment extends Fragment @Override public void setCallState(@NonNull PrimaryCallState primaryCallState) { LogUtil.i("RttChatFragment.setCallState", primaryCallState.toString()); - if (!isTimerStarted && primaryCallState.state == State.ACTIVE) { + if (!isTimerStarted && primaryCallState.state() == State.ACTIVE) { LogUtil.i( "RttChatFragment.setCallState", "starting timer with base: %d", chronometer.getBase()); chronometer.setBase( - primaryCallState.connectTimeMillis + primaryCallState.connectTimeMillis() - System.currentTimeMillis() + SystemClock.elapsedRealtime()); chronometer.start(); |