mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-17 22:32:51 +00:00
![Andrzej Hunt](/assets/img/avatar_default.png)
Retrieving the doorhanger during onAttachedToWindow seems to be unreliable, resulting in NPE's when it doesn't work (the only logical explanation would be that onCreate hasn't been called yet, meaning we don't have a layout yet). We should instead findViewById() it during onCreate, where the layout is guaranteed to exist. Since we show the overlay on all devices now, we can make it visible by default, whereas in the past we had a condition to only enable it on > 2.3 devices. MozReview-Commit-ID: 1DGVAPSX0mi --HG-- extra : rebase_source : 025eb790e3b6c2d27ce10e04d624eb19b889d88d