summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNancy Chen <nancychen@google.com>2014-09-24 22:30:02 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-09-24 22:30:02 +0000
commit5bd789b613567585b2ba79580dd2a5dced9a190a (patch)
tree6dfc7820879b7cd043c6e0cb5f6d9a275c9dbb6c
parent277a3b2505b79c3634fc5f9f5a0924f47e616529 (diff)
parent4a5a1bd99ef5e7c3571f299a6c979000bc6a0f74 (diff)
am 4a5a1bd9: Remove the "Last Week" heading for call history.
* commit '4a5a1bd99ef5e7c3571f299a6c979000bc6a0f74': Remove the "Last Week" heading for call history.
-rw-r--r--res/values/strings.xml6
-rw-r--r--src/com/android/dialer/calllog/CallLogAdapter.java2
-rw-r--r--src/com/android/dialer/calllog/CallLogGroupBuilder.java7
3 files changed, 2 insertions, 13 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 9c65679db..beb7fe209 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -727,11 +727,7 @@
[CHAR LIMIT=65] -->
<string name="call_log_header_yesterday">Yesterday</string>
- <!-- String used as a header in the call log above calls which occurred last week.
- [CHAR LIMIT=65] -->
- <string name="call_log_header_last_week">Last week</string>
-
- <!-- String used as a header in the call log above calls which occurred more than a week ago.
+ <!-- String used as a header in the call log above calls which occurred two days or more ago.
[CHAR LIMIT=65] -->
<string name="call_log_header_other">Older</string>
diff --git a/src/com/android/dialer/calllog/CallLogAdapter.java b/src/com/android/dialer/calllog/CallLogAdapter.java
index e727f7a7f..b585b89c1 100644
--- a/src/com/android/dialer/calllog/CallLogAdapter.java
+++ b/src/com/android/dialer/calllog/CallLogAdapter.java
@@ -1350,8 +1350,6 @@ public class CallLogAdapter extends GroupingListAdapter
return mContext.getResources().getString(R.string.call_log_header_today);
} else if (group == CallLogGroupBuilder.DAY_GROUP_YESTERDAY) {
return mContext.getResources().getString(R.string.call_log_header_yesterday);
- } else if (group == CallLogGroupBuilder.DAY_GROUP_LAST_WEEK) {
- return mContext.getResources().getString(R.string.call_log_header_last_week);
} else {
return mContext.getResources().getString(R.string.call_log_header_other);
}
diff --git a/src/com/android/dialer/calllog/CallLogGroupBuilder.java b/src/com/android/dialer/calllog/CallLogGroupBuilder.java
index 9c4e6319a..1f11e1e60 100644
--- a/src/com/android/dialer/calllog/CallLogGroupBuilder.java
+++ b/src/com/android/dialer/calllog/CallLogGroupBuilder.java
@@ -80,11 +80,8 @@ public class CallLogGroupBuilder {
/** Day grouping for calls which occurred yesterday. */
public static final int DAY_GROUP_YESTERDAY = 1;
- /** Day grouping for calls which occurred last week. */
- public static final int DAY_GROUP_LAST_WEEK = 2;
-
/** Day grouping for calls which occurred before last week. */
- public static final int DAY_GROUP_OTHER = 3;
+ public static final int DAY_GROUP_OTHER = 2;
/** Instance of the time object used for time calculations. */
private static final Time TIME = new Time();
@@ -264,8 +261,6 @@ public class CallLogGroupBuilder {
return DAY_GROUP_TODAY;
} else if (days == 1) {
return DAY_GROUP_YESTERDAY;
- } else if (days > 1 && days <=7) {
- return DAY_GROUP_LAST_WEEK;
} else {
return DAY_GROUP_OTHER;
}