Skip to content

Commit c7fb118

Browse files
committed
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
1 parent 2dc6af2 commit c7fb118

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/MediaFrameworkTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ public void onCreate(Bundle icicle) {
9898
mWakeLock.acquire();
9999
}
100100

101-
public void onStop(Bundle icicle) {
101+
@Override
102+
public void onDestroy() {
103+
super.onDestroy();
102104
mWakeLock.release();
103105
}
104106

0 commit comments

Comments
 (0)