diff options
author | Roshan Pius <rpius@google.com> | 2015-06-10 17:42:14 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-06-10 17:42:14 +0000 |
commit | 73be4a0455e6ceb3757c24889f138a0cdc3d5840 (patch) | |
tree | c9218a7ee42730f68eb2d9d6d40752ea4f2071c9 /src | |
parent | 93f6a328dfd84a4d7ac4c18b80749cc8af914d51 (diff) | |
parent | 2edcc52884f5ce28df261573ec87b876bc00f963 (diff) |
Merge "Call log duration display for calls less than a minute." into mnc-dev
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); } /** |