Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit adb11edb authored by Lucas Silva's avatar Lucas Silva Committed by Android Build Coastguard Worker
Browse files

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.
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:68cb239bb0e7129d0f415d7a3b77609ab1326a79)
Merged-In: Ic2d87278e5c60509c39062437b548ae76959b169
Change-Id: Ic2d87278e5c60509c39062437b548ae76959b169
parent 8c57a52b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment