Closed Bug 1196553 Opened 9 years ago Closed 9 years ago

Add to Reading list icon in menu doesn't look disabled when disabled on phone

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(firefox42 fixed, firefox43 fixed, fennec42+)

RESOLVED FIXED
Firefox 43
Tracking Status
firefox42 --- fixed
firefox43 --- fixed
fennec 42+ ---

People

(Reporter: mcomella, Assigned: mcomella)

References

Details

Attachments

(1 file)

We call GeckoMenuItem.setIcon for the reading list icon [1] whereas our other calls go through:
 MenuItemActionBar.setIcon
  MenuItemActionView.setIcon
   PromptListAdapter.updateActionView

MenuItemActionBar.setIcon
 MenuItemActionBar.initialize

etc.

[1]: https://mxr.mozilla.org/mozilla-central/source/mobile/android/base/BrowserApp.java?rev=2b213c98f8a8#3234
Tracking 42 to match bug 1179479, where this first landed.
Blocks: 1179479
tracking-fennec: --- → 42+
Bug 1196553 - Set secondary action bar colors on phone. r=margaret

I previously set this for tablet but didn't (for an unknown reason) set this
for phones as well.
Attachment #8652652 - Flags: review?(margaret.leibovic)
Comment on attachment 8652652 [details]
MozReview Request: Bug 1196553 - Set secondary action bar colors on phone. r=margaret

https://reviewboard.mozilla.org/r/17241/#review15441

I'm not familiar with this tinting business, so this is a rubber stamp. Please ask Chenxia to review if you think this could benefit from a more knowledgable set of eyes!
Attachment #8652652 - Flags: review?(margaret.leibovic) → review+
Comment on attachment 8652652 [details]
MozReview Request: Bug 1196553 - Set secondary action bar colors on phone. r=margaret

(In reply to :Margaret Leibovic (PTO Aug 27 - Sept 14) from comment #4)
> I'm not familiar with this tinting business, so this is a rubber stamp.
> Please ask Chenxia to review if you think this could benefit from a more
> knowledgable set of eyes!

To be on the safe side.
Attachment #8652652 - Flags: review?(liuche)
Comment on attachment 8652652 [details]
MozReview Request: Bug 1196553 - Set secondary action bar colors on phone. r=margaret

https://reviewboard.mozilla.org/r/17241/#review15453

I wonder if it's time to get rid of our custom attrs and use DrawableCompat? Sonuds like 22.1 support library will work.

http://stackoverflow.com/a/29890717/582004
Attachment #8652652 - Flags: review?(liuche)
Comment on attachment 8652652 [details]
MozReview Request: Bug 1196553 - Set secondary action bar colors on phone. r=margaret

https://reviewboard.mozilla.org/r/17241/#review15485

Ship It!
Attachment #8652652 - Flags: review+
https://reviewboard.mozilla.org/r/17241/#review15453

> I wonder if it's time to get rid of our custom attrs and use DrawableCompat? Sonuds like 22.1 support library will work.

By our custom attrs, are you referring to `gecko:drawableTintList`? afaik, `DrawableCompat` doesn't add XML attrs for us to use so we'd have to set the tint dynamically. I added `drawableTintList` so that we can define the `ColorStateList`s via XML. Note that `drawableTintList` is actually [backed by DrawableCompat] (and probably why we haven't done something like this sooner).

[backed by DrawableCompat]: https://mxr.mozilla.org/mozilla-central/source/mobile/android/base/widget/ThemedImageView.java?rev=86782173d9b8#187
url:        https://hg.mozilla.org/integration/fx-team/rev/d3d4393b7b7d88d801a342b3a865eb87f52faded
changeset:  d3d4393b7b7d88d801a342b3a865eb87f52faded
user:       Michael Comella <michael.l.comella@gmail.com>
date:       Tue Aug 25 17:22:11 2015 -0700
description:
Bug 1196553 - Set secondary action bar colors on phone. r=margaret

I previously set this for tablet but didn't (for an unknown reason) set this
for phones as well.
Comment on attachment 8652652 [details]
MozReview Request: Bug 1196553 - Set secondary action bar colors on phone. r=margaret

Approval Request Comment
[Feature/regressing bug #]: bug 1179479
[User impact if declined]:
  Users on phones will see the disabled reading list and bookmark buttons as enabled (though pressing them does not do anything) – i.e. the style is always the enabled style

[Describe test coverage new/current, TreeHerder]: Tested locally
[Risks and why]: 
  Low, we're applying an already-used style from tablet onto all devices (including phones). Worst case, some obscure device configuration doesn't like the new style.

[String/UUID change made/needed]: None
Attachment #8652652 - Flags: approval-mozilla-aurora?
https://hg.mozilla.org/mozilla-central/rev/d3d4393b7b7d
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 43
Comment on attachment 8652652 [details]
MozReview Request: Bug 1196553 - Set secondary action bar colors on phone. r=margaret

Visual regression, taking it.
Attachment #8652652 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: