netboy3/frameworks_base — comment on commit fb3a8c1795b848d7fbcddb04dede77ab215b454f
File:  line 0
By Zaphod-Beeblebrox:

this is likely a good short term fix for the problem. However, as I begin to extend the WeatherPanel to the lock screen, I'm going to need a more sophisticated way of knowing when to set visibility. I can foresee cases where we want WeatherPanel in one place, but not another. Thus, the checks for visibility are going to need to be outside of the actual WeatherPanel Code .
WeatherPanel doesn't really know where it's being placed, and shouldn't know. It's meant to be a placement agnostic frame.