diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2017-12-20 20:57:28 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-12-20 20:57:28 +0000 |
commit | e2da6ef8a56bd9f7eedfa1c6d89e968590e0c09b (patch) | |
tree | 0d306da41539feb37b10e8ff56a23fe0704676e3 /java/com/android/dialer/voicemail/listui | |
parent | f976beb4b56b9b0b1ea17c6466d79b16a4eb7477 (diff) | |
parent | cc8942a206ad7d6c779547c0ec84c35988a6beaa (diff) |
Merge changes I5a55df44,I7230508f
* changes:
Populate voicemails in simulator
Print array map for debugging purposes.
Diffstat (limited to 'java/com/android/dialer/voicemail/listui')
-rw-r--r-- | java/com/android/dialer/voicemail/listui/NewVoicemailAdapter.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/java/com/android/dialer/voicemail/listui/NewVoicemailAdapter.java b/java/com/android/dialer/voicemail/listui/NewVoicemailAdapter.java index a4848c8f0..315bf1cf0 100644 --- a/java/com/android/dialer/voicemail/listui/NewVoicemailAdapter.java +++ b/java/com/android/dialer/voicemail/listui/NewVoicemailAdapter.java @@ -190,7 +190,7 @@ final class NewVoicemailAdapter extends RecyclerView.Adapter<ViewHolder> // TODO(uabdullah): a bug Remove logging, temporarily here for debugging. printHashSet(); // TODO(uabdullah): a bug Remove logging, temporarily here for debugging. - printHashMap(); + printArrayMap(); if (viewHolder instanceof NewVoicemailHeaderViewHolder) { LogUtil.i( @@ -241,7 +241,7 @@ final class NewVoicemailAdapter extends RecyclerView.Adapter<ViewHolder> newVoicemailViewHolderArrayMap.remove(newVoicemailViewHolder.getViewHolderId()); printHashSet(); - printHashMap(); + printArrayMap(); } newVoicemailViewHolder.reset(); @@ -265,7 +265,7 @@ final class NewVoicemailAdapter extends RecyclerView.Adapter<ViewHolder> // TODO(uabdullah): a bug Remove logging, temporarily here for debugging. printHashSet(); // TODO(uabdullah): a bug Remove logging, temporarily here for debugging. - printHashMap(); + printArrayMap(); // If the viewholder is playing the voicemail, keep updating its media player view (seekbar, // duration etc.) @@ -298,12 +298,12 @@ final class NewVoicemailAdapter extends RecyclerView.Adapter<ViewHolder> // TODO(uabdullah): a bug Remove logging, temporarily here for debugging. printHashSet(); // TODO(uabdullah): a bug Remove logging, temporarily here for debugging. - printHashMap(); + printArrayMap(); } - private void printHashMap() { + private void printArrayMap() { LogUtil.i( - "NewVoicemailAdapter.printHashMap", + "NewVoicemailAdapter.printArrayMap", "hashMapSize: %d, currentlyExpandedViewHolderId:%d", newVoicemailViewHolderArrayMap.size(), currentlyExpandedViewHolderId); @@ -311,9 +311,9 @@ final class NewVoicemailAdapter extends RecyclerView.Adapter<ViewHolder> if (!newVoicemailViewHolderArrayMap.isEmpty()) { String ids = ""; for (int id : newVoicemailViewHolderArrayMap.keySet()) { - ids = id + String.valueOf(id) + " "; + ids = ids + id + " "; } - LogUtil.i("NewVoicemailAdapter.printHashMap", "ids are " + ids); + LogUtil.i("NewVoicemailAdapter.printArrayMap", "ids are " + ids); } } @@ -801,7 +801,7 @@ final class NewVoicemailAdapter extends RecyclerView.Adapter<ViewHolder> currentlyExpandedViewHolderId); // TODO(uabdullah): a bug Remove logging, temporarily here for debugging. printHashSet(); - printHashMap(); + printArrayMap(); return null; } } |