diff options
author | Marco Nelissen <marcone@google.com> | 2012-09-17 17:03:30 -0700 |
---|---|---|
committer | Marco Nelissen <marcone@google.com> | 2012-09-17 17:03:30 -0700 |
commit | c7fb118d90e92a26794257e837018b8c1cb15673 (patch) | |
tree | c9346aee8037b155ed978e0be306c96a177e9ef5 /media/tests/MediaFrameworkTest/src | |
parent | 2dc6af2082b93849b2e5519a8ae7504757286aa9 (diff) | |
download | frameworks_base-c7fb118d90e92a26794257e837018b8c1cb15673.zip frameworks_base-c7fb118d90e92a26794257e837018b8c1cb15673.tar.gz frameworks_base-c7fb118d90e92a26794257e837018b8c1cb15673.tar.bz2 |
Activity.onStop(Bundle) does not exist
Since that method doesn't exist, the MediaFrameworkTest wake lock was
never released, which caused the test to be killed when the GC collected
the still active wake lock.
Change-Id: Iee2c0478470be987ade405a45abf42ca61b681ab
Diffstat (limited to 'media/tests/MediaFrameworkTest/src')
-rw-r--r-- | media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/MediaFrameworkTest.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/MediaFrameworkTest.java b/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/MediaFrameworkTest.java index e7f98de..ed9bb97 100644 --- a/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/MediaFrameworkTest.java +++ b/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/MediaFrameworkTest.java @@ -98,7 +98,9 @@ public class MediaFrameworkTest extends Activity implements SurfaceHolder.Callba mWakeLock.acquire(); } - public void onStop(Bundle icicle) { + @Override + public void onDestroy() { + super.onDestroy(); mWakeLock.release(); } |