gecko-dev/mobile
Michael Comella 84ec7c9bdc Bug 1179479 - Invalidate Themed* after refreshing drawable state. r=mhaigh
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
2015-08-05 14:17:49 -07:00
..
android Bug 1179479 - Invalidate Themed* after refreshing drawable state. r=mhaigh 2015-08-05 14:17:49 -07:00
locales Bug 1125280 Part 2- Different suggestedsite tiles on first run for kidfox.r=sebastian 2015-08-07 21:41:32 -07:00