mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 15:25:52 +00:00
84ec7c9bdc
afaict, refreshDrawableState only sets the appropriate back-end bits to change the state but does not request a redraw. For example, refreshDrawableState eventually calls Drawable.setState, whose docs specify: If the new state you are supplying causes the appearance of the Drawable to change, then it is responsible for calling invalidateSelf in order to have itself redrawn, and true will be returned from this function. Notably, there are no other calls to invalidate in the call hierarchy so I added one. The reason this (sometimes) worked before is because the views would be invalidated in some other way, e.g. setDrawable would be called. Without this patch, the next patch would update the reload menu icon on press (i.e. another invalidate call) but not when the tab was switched from non-private to private. --HG-- extra : commitid : 6sgL4RK8hij extra : rebase_source : 7f86f67146fda826ee089fec0f16cd6fe290e9e0 |
||
---|---|---|
.. | ||
android | ||
locales |