Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4a5a1bd9 authored by Nancy Chen's avatar Nancy Chen
Browse files

Remove the "Last Week" heading for call history.

The phrasing "Last Week" was confusing phrasing, because it included
anything from 2-7 days from today. Removing for now.

Bug: 17632092
Change-Id: I05ff691c8cc3b20d3d61fae8d7ee0c5c134f4838
parent 2292a202
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -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>

+0 −2
Original line number Diff line number Diff line
@@ -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);
       }
+1 −6
Original line number Diff line number Diff line
@@ -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;
        }