From 259c569c371f6b24ab940a90a9a4c504f0b6fe3b Mon Sep 17 00:00:00 2001 From: uabdullah Date: Fri, 29 Sep 2017 15:38:38 -0700 Subject: Create UI support for voicemail transcription, location, date and duration. Screenshot:http://screen/dwihQaaeaQC Bug: 64882313,33006245 Test: NewVoicemailCallLogViewHolderTest, NewVoicemailCallLogAdapterTest PiperOrigin-RevId: 170542645 Change-Id: I00c145c5856c3f1f53d12b0fd7bd80c63bb8a094 --- .../voicemail/listui/NewVoicemailCallLogAdapter.java | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'java/com/android/dialer/voicemail/listui/NewVoicemailCallLogAdapter.java') diff --git a/java/com/android/dialer/voicemail/listui/NewVoicemailCallLogAdapter.java b/java/com/android/dialer/voicemail/listui/NewVoicemailCallLogAdapter.java index 63dae20d9..b40c8630e 100644 --- a/java/com/android/dialer/voicemail/listui/NewVoicemailCallLogAdapter.java +++ b/java/com/android/dialer/voicemail/listui/NewVoicemailCallLogAdapter.java @@ -20,23 +20,23 @@ import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.android.dialer.common.LogUtil; +import com.android.dialer.voicemail.datasources.VoicemailData; import java.util.List; /** {@link RecyclerView.Adapter} for the new voicemail call log fragment. */ final class NewVoicemailCallLogAdapter extends RecyclerView.Adapter { - private final List values; + private final List voicemailData; - NewVoicemailCallLogAdapter(List myDataset) { - values = myDataset; + NewVoicemailCallLogAdapter(List dataSet) { + voicemailData = dataSet; } @Override public NewVoicemailCallLogViewHolder onCreateViewHolder(ViewGroup viewGroup, int viewType) { LayoutInflater inflater = LayoutInflater.from(viewGroup.getContext()); - View v = inflater.inflate(R.layout.voicemail_call_log_entry, viewGroup, false); - + View v = inflater.inflate(R.layout.new_voicemail_call_log_entry, viewGroup, false); NewVoicemailCallLogViewHolder newVoicemailCallLogViewHolder = new NewVoicemailCallLogViewHolder(v); return newVoicemailCallLogViewHolder; @@ -45,12 +45,11 @@ final class NewVoicemailCallLogAdapter extends RecyclerView.Adapter