commit | 9262400138be326e32f630701086aebfe8c44c14 | [log] [tgz] |
---|---|---|
author | Andrei Stingaceanu <stg@google.com> | Wed Oct 05 12:16:03 2016 +0100 |
committer | Andrei Stingaceanu <stg@google.com> | Thu Oct 06 10:30:54 2016 +0000 |
tree | 678922035754b713f586d650dc1e9895b0aa85af | |
parent | 67b6c5f8b82d730f3d39287af5e98adbd77c6ebf [diff] |
AppCompatDelegate - fix cast exception View#getParent can return a ViewParent and not necessarily a View. Check that the action mode view is an instance of View (besides checking for null) before casting it to a View. Test: create a custom dialog with TextView as message, open it and select text multiple times. Observe no crash. Bug: 31500890 Change-Id: Ie2fcd7de6730b5521086401b2be621fd0a64e593