summaryrefslogtreecommitdiff
path: root/opengl/java
diff options
context:
space:
mode:
authorChalard Jean <jchalard@google.com>2021-03-01 22:16:08 +0900
committerChalard Jean <jchalard@google.com>2021-03-04 13:11:59 +0000
commit775feeb477e75fbde2453c800183282da4ccc776 (patch)
treeae5f7d88f428ad47c20586f1e10e7b63fee4d9c2 /opengl/java
parentb80f9b0097e70438f05a111117dea5ebb06795cc (diff)
Fix a bug where callbacks would see blips
When a new OemPreference object is set, the requests tracking that default will be re-created to track the new default. This is true regardless of whether that particular default has changed. Because the new copied request doesn't know about the old satisfier, the rematch code will mistakenly think this callback didn't have a network and will send a spurious onAvailable to it. This patch fixes this by simply copying the satisfier together with the rest of the NRI. The matching code will then understand the correct previous status. As a drive-by fix, this also fixes the annotations on the reassignment contents that can be null. They have more complex interactions (not everything can be null at the same time), but the old annotations were just putting @NonNull on nullable stuff. In the same line, while there used to be a case with a satisfier but no request when the satisfier is the no-service network, there may now be a case where the old satisfier is known but the old request isn't. Test: FrameworksNetTests Test: TODO : need a unit test for this Change-Id: Ide2567b226722ea9d35ebd8205943363e27647a2
Diffstat (limited to 'opengl/java')
0 files changed, 0 insertions, 0 deletions