summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorHyundo Moon <hdmoon@google.com>2019-01-10 16:58:52 +0900
committerHyundo Moon <hdmoon@google.com>2019-01-10 17:08:06 +0900
commit0c0e1bdc33423844b3d679c16073128286af60f4 (patch)
tree5349f9a5c38fc1214b82c4f12cf67225a396f340 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent9d3abfbf8b75ff522044e0138167187f2aa657e0 (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