From 26b3f3d71b4cae4ee234081ea6da82eb44e88ee6 Mon Sep 17 00:00:00 2001 From: uabdullah Date: Sat, 18 Nov 2017 11:14:52 -0800 Subject: When an expanded NUI VM is collapsed, ensure it remains collapsed when recycling views. The adapter maintains the state of those voicemails that were expanded. When the views are recycled we ensure that the expanded view holder whenever visible is expanded. However when an expanded viewholder is collapsed, taken out of view and then brought back into view (recycled), the expanded state is preserved. This CL ensures that this no longer happens. Bug: 64882313,68382421 Test: Unit test PiperOrigin-RevId: 176233960 Change-Id: Ib57859a287ec0c4f9e955a0fc01a49f093023fd1 --- .../dialer/voicemail/listui/NewVoicemailAdapter.java | 13 +++++++++++++ .../dialer/voicemail/listui/NewVoicemailViewHolder.java | 9 ++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) (limited to 'java') diff --git a/java/com/android/dialer/voicemail/listui/NewVoicemailAdapter.java b/java/com/android/dialer/voicemail/listui/NewVoicemailAdapter.java index 6f6a87cef..1c53e3801 100644 --- a/java/com/android/dialer/voicemail/listui/NewVoicemailAdapter.java +++ b/java/com/android/dialer/voicemail/listui/NewVoicemailAdapter.java @@ -102,4 +102,17 @@ final class NewVoicemailAdapter extends RecyclerView.Adapter