summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2015-06-18 18:19:20 -0700
committerAndrew Lee <anwlee@google.com>2015-06-19 18:16:32 -0700
commit053b9c7a4b2662588706211fd8aa1f8a03ec2901 (patch)
treea9a933161af013c40bf64a9a457a86a86df3637e /tests
parentb67f24eb6229ea10afb83f8ef2bf2bc6ba29a8f6 (diff)
downloadandroid_packages_apps_Dialer-053b9c7a4b2662588706211fd8aa1f8a03ec2901.tar.gz
android_packages_apps_Dialer-053b9c7a4b2662588706211fd8aa1f8a03ec2901.tar.bz2
android_packages_apps_Dialer-053b9c7a4b2662588706211fd8aa1f8a03ec2901.zip
Rewrite of MediaPlayer logic.
+ Control MediaPlayer instance more tightly. Wait until prepareContent to initialize instance. Release MediaPlayer when it is no longer needed. + Instead of using isFinishing, check explicitly for orientation change to know whether to release MediaPlayer. + Change Presenter to singleton, to address audio change wonkiness. + Only create a Presenter if the call log fragment shows voicemail. + ... fixing a variety of cases. - Temporarily disable proximity sensor until blocking issue is fixed. Bug: 21856243 Change-Id: Ic06e98bb5278467c3cce726a06b6cf3d855861a2
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/dialer/voicemail/VoicemailPlaybackTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/src/com/android/dialer/voicemail/VoicemailPlaybackTest.java b/tests/src/com/android/dialer/voicemail/VoicemailPlaybackTest.java
index ea341a30e..58b4f558d 100644
--- a/tests/src/com/android/dialer/voicemail/VoicemailPlaybackTest.java
+++ b/tests/src/com/android/dialer/voicemail/VoicemailPlaybackTest.java
@@ -85,7 +85,7 @@ public class VoicemailPlaybackTest extends ActivityInstrumentationTestCase2<Call
mLayout = new VoicemailPlaybackLayout(mActivity);
mLayout.onFinishInflate();
- mPresenter = new VoicemailPlaybackPresenter(mActivity, null);
+ mPresenter = VoicemailPlaybackPresenter.getInstance(mActivity, null);
}
@Override