summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTyler Gunn <tgunn@google.com>2014-05-22 16:36:14 -0700
committerTyler Gunn <tgunn@google.com>2014-05-23 15:10:33 +0000
commitf3f706aeeea69fb2ac4898c4038f9839f456f39c (patch)
tree9911ba3ed7f05b4c9991fd03bae0a033cd1511e7 /src
parent13f6fd048f0cdc26e9dc6b78a02515e72fff2e27 (diff)
Cleanup of call log entry horizontal padding and RTL support. DO NOT MERGE
Bug: 15165669 Change-Id: Iceba7fdfcecb79c3d1ef30505e27b5274da67111 (cherry picked from commit b2a0168c53ef96ac26a2abb8dcb2c34b49c9becc)
Diffstat (limited to 'src')
-rw-r--r--src/com/android/dialer/calllog/CallLogAdapter.java15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/com/android/dialer/calllog/CallLogAdapter.java b/src/com/android/dialer/calllog/CallLogAdapter.java
index 12d5531fd..9906513f8 100644
--- a/src/com/android/dialer/calllog/CallLogAdapter.java
+++ b/src/com/android/dialer/calllog/CallLogAdapter.java
@@ -22,7 +22,6 @@ import android.content.Intent;
import android.content.res.Resources;
import android.database.Cursor;
import android.net.Uri;
-import android.os.AsyncTask;
import android.os.Handler;
import android.os.Message;
import android.provider.CallLog.Calls;
@@ -35,7 +34,6 @@ import android.view.ViewStub;
import android.view.ViewTreeObserver;
import android.widget.ImageView;
import android.widget.TextView;
-import android.widget.Toast;
import com.android.common.widget.GroupingListAdapter;
import com.android.contacts.common.ContactPhotoManager;
@@ -45,8 +43,6 @@ import com.android.contacts.common.util.UriUtils;
import com.android.dialer.PhoneCallDetails;
import com.android.dialer.PhoneCallDetailsHelper;
import com.android.dialer.R;
-import com.android.dialer.util.AsyncTaskExecutor;
-import com.android.dialer.util.AsyncTaskExecutors;
import com.android.dialer.util.ExpirableCache;
import com.google.common.annotations.VisibleForTesting;
@@ -126,10 +122,10 @@ public class CallLogAdapter extends GroupingListAdapter
private static final int CONTACT_INFO_CACHE_SIZE = 100;
/** Localized string representing the word "Today". */
- private static final CharSequence TODAY_LABEL = DateUtils.getTodayString();
+ private final CharSequence mTodayLabel = DateUtils.getTodayString();
/** Localized string representing the word "Yesterday". */
- private static final CharSequence YESTERDAY_LABEL = DateUtils.getYesterdayString();
+ private final CharSequence mYesterdayLabel = DateUtils.getYesterdayString();
/** Constant used to indicate no row is expanded. */
private static final long NONE_EXPANDED = -1;
@@ -139,9 +135,6 @@ public class CallLogAdapter extends GroupingListAdapter
private final CallFetcher mCallFetcher;
private ViewTreeObserver mViewTreeObserver = null;
- /** Aynchronous task executor, lazy instantiated as needed. */
- private AsyncTaskExecutor mAsyncTaskExecutor;
-
/**
* A cache of the contact details for the phone numbers in the call log.
* <p>
@@ -1327,9 +1320,9 @@ public class CallLogAdapter extends GroupingListAdapter
*/
private CharSequence getGroupDescription(int group) {
if (group == CallLogGroupBuilder.DAY_GROUP_TODAY) {
- return TODAY_LABEL;
+ return mTodayLabel;
} else if (group == CallLogGroupBuilder.DAY_GROUP_YESTERDAY) {
- return YESTERDAY_LABEL;
+ return mYesterdayLabel;
} else if (group == CallLogGroupBuilder.DAY_GROUP_LAST_WEEK) {
return mContext.getResources().getString(R.string.call_log_header_last_week);
} else {