diff options
Diffstat (limited to 'java/com/android/incallui/call/DialerCall.java')
-rw-r--r-- | java/com/android/incallui/call/DialerCall.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/java/com/android/incallui/call/DialerCall.java b/java/com/android/incallui/call/DialerCall.java index d736edc94..1c2744644 100644 --- a/java/com/android/incallui/call/DialerCall.java +++ b/java/com/android/incallui/call/DialerCall.java @@ -1102,6 +1102,10 @@ public class DialerCall implements VideoTechListener, StateChangedListener, Capa } catch (IOException e) { LogUtil.e("DialerCall.saveRttTranscript", "error when reading remaining message", e); } + // Don't save transcript if it's empty. + if (rttTranscript.getMessagesCount() == 0) { + return; + } Futures.addCallback( RttTranscriptUtil.saveRttTranscript(context, rttTranscript), new DefaultFutureCallback<>(), |