summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2015-06-15 16:06:14 -0700
committerAndrew Lee <anwlee@google.com>2015-06-15 17:43:52 -0700
commitbae7b937b6cf6e7eb26d07bec95de38083923614 (patch)
tree6662774c617e202e85bea437ea503ba78923247d /tests
parentbecbb119bdcd96257106b990ce84bac99388deac (diff)
downloadandroid_packages_apps_Dialer-bae7b937b6cf6e7eb26d07bec95de38083923614.tar.gz
android_packages_apps_Dialer-bae7b937b6cf6e7eb26d07bec95de38083923614.tar.bz2
android_packages_apps_Dialer-bae7b937b6cf6e7eb26d07bec95de38083923614.zip
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
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/dialer/calllog/CallLogFragmentTest.java4
1 files changed, 1 insertions, 3 deletions
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<Fragme
*/
@MediumTest
public void testCallViewIsNotVisibleForPrivateAndUnknownNumbers() {
- final int SIZE = 100;
+ final int SIZE = 50;
mList = new CallLogListItemViewHolder[SIZE];
// Insert the first batch of entries.
@@ -320,7 +320,6 @@ public class CallLogFragmentTest extends ActivityInstrumentationTestCase2<Fragme
CallLogListItemViewHolder viewHolder = (CallLogListItemViewHolder)
mAdapter.onCreateViewHolder(mParentView, /* viewType */ 0);
bindViewForTest(viewHolder);
- viewHolder.updatePrimaryActionButton();
// The primaryActionView tag is set in the
// {@link com.android.dialer.calllog.CallLogAdapter#bindView} method. If it is possible
@@ -453,7 +452,6 @@ public class CallLogFragmentTest extends ActivityInstrumentationTestCase2<Fragme
}
});
getInstrumentation().waitForIdleSync();
- viewHolder.updatePrimaryActionButton();
}
private void bindViewForTest(CallLogListItemViewHolder viewHolder) {