summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Torne (Richard Coles) <torne@google.com> 2024-08-27 15:42:30 -0400
committer Torne (Richard Coles) <torne@google.com> 2024-09-03 15:31:37 -0400
commit41262a5b743960e55dbf1d2b066ea9256f0eff9c (patch)
tree05cc573a4990f452432ebb059bf8372ca432866b /libs/input/PointerController.cpp
parent925d1a6ffc25f268771831f78a2c50f8c6e51ac2 (diff)
WebViewUpdateManager: handle devices without WebView properly.
Devices without FEATURE_WEBVIEW (Wear) don't run the WebViewUpdateService and so looking up the service binder via SystemServiceRegistry fails. This returns null in most cases but for system processes this triggers a WTF, and was causing the Wear settings app to crash. Instead of trying to handle WebViewUpdateManager being null, guard all the usages with an explicit check for whether WebView is supported on the device, and update the API docs to clarify this requirement. Bug: 319292658 Bug: 360768638 Test: atest CtsWebkitTestCases Flag: android.webkit.update_service_ipc_wrapper Change-Id: I13f0ddde49b3866ceb747a1d1b11e45504f05640
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions