From bae7b937b6cf6e7eb26d07bec95de38083923614 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Mon, 15 Jun 2015 16:06:14 -0700 Subject: Add play voicemail primary action to call log. + Add voicemail primary action button, which expands the call log and plays immediately when clicked. + Pass expand/collapse listener into the view holder. This is necessary because it needs to be triggered when the "play" primary action is clicked so that the CallLogAdapter correctly registers what has been added and binded. + Update primary action button state when showing or hiding actions, so the visibility of the voicemail play button is managed properly. + Ensure voicemail playback state is consistent between multiple call log items when the user initiates a collapse or expand. Add reset function to help manage this. + With the reset, protect against the possibility of functions in the presenter being called when no voicemail playback view is set. Bug: 21654755 Change-Id: I7bcf67d27fa08fe77d1334dc084b52effe8d3ccc --- tests/src/com/android/dialer/calllog/CallLogFragmentTest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tests/src') diff --git a/tests/src/com/android/dialer/calllog/CallLogFragmentTest.java b/tests/src/com/android/dialer/calllog/CallLogFragmentTest.java index b3906f814..6f4b68b82 100644 --- a/tests/src/com/android/dialer/calllog/CallLogFragmentTest.java +++ b/tests/src/com/android/dialer/calllog/CallLogFragmentTest.java @@ -147,7 +147,7 @@ public class CallLogFragmentTest extends ActivityInstrumentationTestCase2