diff options
author | Roshan Pius <rpius@google.com> | 2015-06-09 15:38:45 -0700 |
---|---|---|
committer | Roshan Pius <rpius@google.com> | 2015-06-10 00:58:07 +0000 |
commit | 2edcc52884f5ce28df261573ec87b876bc00f963 (patch) | |
tree | 443ba95a09b57b42a822c838daa3e5be9a8520fc /src | |
parent | feddb49ced2eb10328f9f3db52c950668472ffef (diff) |
Call log duration display for calls less than a minute.
Changing the call log details duration display to show only the seconds
if the elapsed duration is less than a minute.
Bug: 19383401
Change-Id: I8d39ca2c6c680e58602022250d4272d83024696d
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/dialer/calllog/CallDetailHistoryAdapter.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/android/dialer/calllog/CallDetailHistoryAdapter.java b/src/com/android/dialer/calllog/CallDetailHistoryAdapter.java index d53f77f8a..3b488a8ae 100644 --- a/src/com/android/dialer/calllog/CallDetailHistoryAdapter.java +++ b/src/com/android/dialer/calllog/CallDetailHistoryAdapter.java @@ -153,10 +153,12 @@ public class CallDetailHistoryAdapter extends BaseAdapter { if (elapsedSeconds >= 60) { minutes = elapsedSeconds / 60; elapsedSeconds -= minutes * 60; + seconds = elapsedSeconds; + return mContext.getString(R.string.callDetailsDurationFormat, minutes, seconds); + } else { + seconds = elapsedSeconds; + return mContext.getString(R.string.callDetailsShortDurationFormat, seconds); } - seconds = elapsedSeconds; - - return mContext.getString(R.string.callDetailsDurationFormat, minutes, seconds); } /** |