summaryrefslogtreecommitdiff
path: root/opengl/java
diff options
context:
space:
mode:
author Lucas Silva <lusilva@google.com> 2023-04-12 11:51:19 -0400
committer Lucas Silva <lusilva@google.com> 2023-04-12 11:51:19 -0400
commit68cb239bb0e7129d0f415d7a3b77609ab1326a79 (patch)
tree0eac03b3cb6618923902f0e3c2c7485277cbc8ab /opengl/java
parentb3d00601028c4c841b55a11ab6a81652f02d6703 (diff)
DO NOT MERGE Fix crash related to getting the root of an unattached view
view.getRootView returns itself when unattached, which may not be a ViewGroup instance. Therefore trying to cast to a ViewGroup will cause a ClassCastException. This fix avoids the exception by ensuring that the view is attached before trying to cast the root view. Fixes: 277637573 Test: mp droid and verified touch gestures on dream work correctly by swiping up the bouncer, and swiping down the notification shade. Change-Id: Ic2d87278e5c60509c39062437b548ae76959b169
Diffstat (limited to 'opengl/java')
0 files changed, 0 insertions, 0 deletions