I have looked online for an answer to this, but have not found the root cause of this issue.
I have an application with a view, that listens in on onVisibilityChanged and onWindowVisibilityChanged. What I have noticed is that on Android devices with either KitKat (API 19) or Lollipop (API 22), when the view gets attached to the main layout, onVisibilityChanged is never fired, only onWindowVisibilityChanged.
I am guessing this issue originates with a native API change that occurred from KitKat up to Lollipop, but have not found any documentation or reference to this. When I checked my application on Marshmallow (API 23), it did not happen.
I would just like to know if this is a known issue or if there is some sort of way to fix this behavior.
Thanks.
from OS version 4.4 (KitKat) and 5 (Lollipop) onVisibilityChanged Listener Not Firing
No comments:
Post a Comment