summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Nicolo' Mazzucato <nicomazz@google.com> 2023-04-20 11:35:28 +0000
committer Nicolo' Mazzucato <nicomazz@google.com> 2023-04-20 11:35:28 +0000
commitc3e257fc007faaa4ab3f1a297fe2a4b0fc85f58a (patch)
treeafa19af1375bfd8828a5fcf7d87c857b3d6c2a93 /api/api.go
parentee3afca596291830937b82398d7397039049dadc (diff)
Check for nullness in WallpaperService onDestroy
There are cases where the WallpaperService API is misused and an instance is created manually. In those cases, onCreate is not called as expected, but onDestroy is. As mBackgroundThread was being created `onCreate`, it ended up being null in onDestroy. Adding a null check to avoid breaking those places. Bug: 275361339 Test: androidx.wear.watchface.editor.EditorSessionTest#commitWithPreviewImage Change-Id: I89076da179493fa282f3e59895cfa4f4bfb6bdfc
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions