summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorBeth Thibodeau <ethibodeau@google.com>2021-06-08 19:35:05 -0400
committerBeth Thibodeau <ethibodeau@google.com>2021-06-08 19:48:03 -0400
commit8651185e36048032ea848f0df7bd3f1890b0fd95 (patch)
tree5e25a92ce0227fa9afd302687b5357f819fc603d /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent10de71a3807af1d36b9b1f47a31363a71e1db2f5 (diff)
Handle media load events while testing for resume
An app can send additional notifications, resulting in onMediaDataLoaded calls, while we are waiting for the callback from its MediaBrowserService to return. Previously this would result in disconnecting and then starting a new attempt to connect to the MBS. Instead, 1. notify MediaDataManager immediately when we initiate the test connection, so that if we get additional onMediaDataLoaded calls while testing, it will not try again 2. only disconnect the mediaBrowser in onMediaDataLoaded when the key changes, since this is only relevant when resuming via the MBS. Otherwise we might prematurely disconnect while waiting for the callback result. Bug: 189702977 Test: manual - checked repro with test app Test: atest MediaResumeListenerTest Change-Id: I55cf2be6e62ef72c777899575d9caab78eda31be
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions