Commit Graph
11 Commits
Author SHA1 Message Date
Sebastian Kaspari 0763f09bd4 Bug 1169435 - Replace deprecated Resources.getColor() with call to ColorUtils.getColor(). r=mcomella 2015-08-11 11:09:37 +02:00
Michael Comella 764abd16f1 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.
2015-08-05 14:17:49 -07:00
Michael Comella 352055f275 Bug 1188557 - Update ThemedView template to import the correct LWT. r=mhaigh
I believe I just used an IDE to update the files last time, meaning the
template never got updated.

This was originally implemented but no longer used in bug 1177611.
2015-07-24 17:09:35 -07:00
Nick Alexander 03ce9efd6f Bug 1084098 - Pre: Don't require GeckoApplication in Themed*widgets. r=mcomella
In editors (Eclipse and IntelliJ), Android View sub-classes are created
in a "Bridging" mock context.  There is no ambient GeckoApplication in
this case.  It's already okay for the LWT to be null; let's loosen the
requirement that there be an ambient GeckoApplication to let these View
sub-classes render in editors.
2014-12-08 18:58:37 -08:00
Michael Comella d60fd2f075 Bug 1105053 - Move LightweightTheme* to lwt/. r=vivek 2014-12-05 12:21:42 -08:00
Michael Comella 4eac269bfe Bug 1085771 - Part 1: Add getTheme() method to Themed* views. r=lucasr 2014-12-04 17:36:42 -08:00
Nick Alexander b0f79d67b6 Bug 1102339 - Don't generate widget/Themed*.java. r=rnewman
This lands the widget/Themed*.java sources into the tree and provides
a simple script for regenerating them in the source tree.  Use it
like:

<edit mobile/android/base/widget/ThemedView.java.frag>
$ ./mach python mobile/android/base/widget/generate_themed_views.py
$ hg diff
... changes to Themed*java
2014-11-21 11:04:58 -08:00
Carsten "Tomcat" Book 9476770e87 Backed out changeset 3c91378ef39b (bug 1102339) for suspicion of breaking non-Android builds on a CLOSED TREE 2014-11-25 08:43:36 +01:00
Nick Alexander 982dc3226b Bug 1102339 - Don't generate widget/Themed*.java. r=rnewman
This lands the widget/Themed*.java sources into the tree and provides
a simple script for regenerating them in the source tree.  Use it
like:

<edit mobile/android/base/widget/ThemedView.java.frag>
$ ./mach python mobile/android/base/widget/generate_themed_views.py
$ hg diff
... changes to Themed*java
2014-11-21 11:04:58 -08:00
Wes Kocher e2a9b28508 Backed out changeset 4bcc69eb4a27 (bug 1102339) for stumbler-related robocop failures 2014-11-21 15:54:49 -08:00
Nick Alexander 1d2a7d4864 Bug 1102339 - Don't generate widget/Themed*.java. r=rnewman
This lands the widget/Themed*.java sources into the tree and provides
a simple script for regenerating them in the source tree.  Use it
like:

<edit mobile/android/base/widget/ThemedView.java.frag>
$ ./mach python mobile/android/base/widget/generate_themed_views.py
$ hg diff
... changes to Themed*java
2014-11-21 11:04:58 -08:00