diff options
author | Hyundo Moon <hdmoon@google.com> | 2019-01-10 16:58:52 +0900 |
---|---|---|
committer | Hyundo Moon <hdmoon@google.com> | 2019-01-10 17:08:06 +0900 |
commit | 0c0e1bdc33423844b3d679c16073128286af60f4 (patch) | |
tree | 5349f9a5c38fc1214b82c4f12cf67225a396f340 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 9d3abfbf8b75ff522044e0138167187f2aa657e0 (diff) |
Change initial value of MediaSessionRecord.mDuration to -1
After the CL "a138573: AML: Remove unbundling MediaMetadata in
MediaSessionRecord" is merged, MediaController.getPlaybackState()
returned wrong position.
Since the mDuration is initially set to non-negative value,
getStateWithUpdatedPosition() limited the current position to the
duration, which is wrong.
As a result, the below androidx test failed in Q:
- MediaSessionCompatCallbackTest.testGetPlaybackStateWithPositionUpdate
This CL fixes the problem.
Bug: 121447576
Test: Passed above test
Change-Id: If87c844461a8204f3883cd3081f5c6f057ab36c6
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions