Closed
Bug 1148041
Opened 11 years ago
Closed 11 years ago
Font in share overlay is unexpectedly bolditalic on 4.4
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox38 verified, firefox39 verified)
VERIFIED
FIXED
Firefox 39
People
(Reporter: mcomella, Assigned: mcomella)
References
Details
Attachments
(4 files, 1 obsolete file)
|
477.73 KB,
image/png
|
Details | |
|
474.72 KB,
image/png
|
Details | |
|
1.37 KB,
patch
|
liuche
:
review+
Sylvestre
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
|
39 bytes,
text/x-review-board-request
|
liuche
:
review+
|
Details |
Apparently Android L sets sane defaults and previous versions do not.
Because of the Android inconsistency, there's some value in having a default TextAppearance for our app.
| Assignee | ||
Comment 1•11 years ago
|
||
| Assignee | ||
Comment 2•11 years ago
|
||
/r/6171 - Bug 1148041 - Have the ShareOverlay text styles inherit from the default TextAppearance. r=liuche
Pull down this commit:
hg pull review -r 555666d29be13d76bda4ba9f4e22f318d38ef9a2
Attachment #8583993 -
Flags: review?(liuche)
Comment 3•11 years ago
|
||
Comment on attachment 8583993 [details]
MozReview Request: bz://1148041/mcomella
https://reviewboard.mozilla.org/r/6169/#review5169
Attachment #8583993 -
Flags: review?(liuche) → review+
| Assignee | ||
Comment 4•11 years ago
|
||
| Assignee | ||
Comment 5•11 years ago
|
||
Comment on attachment 8583993 [details]
MozReview Request: bz://1148041/mcomella
Approval Request Comment
[Feature/regressing bug #]: bug 1130203
[User impact if declined]:
Users on pre-Android L devices will get share dialogs with strange inconsistent font styles.
[Describe test coverage new/current, TreeHerder]: None
[Risks and why]:
We change the text styles used in the share overlay to inherit from our default text styles. This may include some attributes that style our text in unexpected ways in edge cases (e.g. text is highlighted, but text can't be highlighted normally in these views), but these edge cases are unexpected.
[String/UUID change made/needed]: None
Attachment #8583993 -
Flags: approval-mozilla-aurora?
| Assignee | ||
Comment 6•11 years ago
|
||
Comment on attachment 8583993 [details]
MozReview Request: bz://1148041/mcomella
This breaks 2.3.
Investigating...
Attachment #8583993 -
Flags: approval-mozilla-aurora?
| Assignee | ||
Comment 7•11 years ago
|
||
(In reply to Michael Comella (:mcomella) from comment #6)
> Investigating...
Stack:
Caused by: android.content.res.Resources$NotFoundException: Resource is not a ColorStateList (color or path): TypedValue{t=0x2/d=0x101009b a=2}
With liuche's help, we determined the problem line [1]:
<item name="android:textColorHint">?android:attr/textColorHint</item>
Following the textColorHint trail, there doesn't appear to be any problems. In Gecko theme [2]:
<item name="android:textColorHint">@color/text_color_hint</item>
And values/colors.xml [3]:
<color name="text_color_hint">#666666</color>
I'm not sure what's going on. Hack fix: perhaps overriding the color will fix the issue here.
[1]: https://mxr.mozilla.org/mozilla-central/source/mobile/android/base/resources/values/styles.xml?rev=4000ac847fc7#295
[2]: https://mxr.mozilla.org/mozilla-central/source/mobile/android/base/resources/values/themes.xml?rev=75204e00b8cd#47
[3]: https://mxr.mozilla.org/mozilla-central/source/mobile/android/base/resources/values/colors.xml?rev=6757510c20c0#88
| Assignee | ||
Comment 8•11 years ago
|
||
(In reply to Michael Comella (:mcomella) from comment #7)
> <item name="android:textColorHint">?android:attr/textColorHint</item>
To be clear, we determined it was the problem line by changing the color and not experiencing a crash.
Status: NEW → RESOLVED
Closed: 11 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 39
| Assignee | ||
Comment 10•11 years ago
|
||
It seems the issue may have been that the default attributes we were referecing are private [1]. This isn't an issue in the browser because we override the default attributes.
The solution is to inherit from the Gecko theme in the ShareOverlayActivity. Working on it...
[1]: http://stackoverflow.com/a/10869421
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Whiteboard: [leave-open]
| Assignee | ||
Comment 11•11 years ago
|
||
| Assignee | ||
Updated•11 years ago
|
Attachment #8584194 -
Flags: review?(liuche)
Comment 12•11 years ago
|
||
Comment on attachment 8584194 [details] [diff] [review]
Inherit from Gecko theme in share overlay
Review of attachment 8584194 [details] [diff] [review]:
-----------------------------------------------------------------
That makes sense - ShareOverlay shows up within FxA, so the theming should be consistent.
Attachment #8584194 -
Flags: review?(liuche) → review+
| Assignee | ||
Comment 13•11 years ago
|
||
| Assignee | ||
Comment 14•11 years ago
|
||
Comment on attachment 8583993 [details]
MozReview Request: bz://1148041/mcomella
Approval Request Comment
(see comment 5)
Attachment #8583993 -
Flags: approval-mozilla-aurora?
| Assignee | ||
Comment 15•11 years ago
|
||
Comment on attachment 8584194 [details] [diff] [review]
Inherit from Gecko theme in share overlay
Please uplift the reviewboard review, then this patch (which fixes that patch).
Approval Request Comment
[Feature/regressing bug #]: This one
[User impact if declined]:
If the other patch is uplifted, crashes on 2.3.
[Describe test coverage new/current, TreeHerder]: None
[Risks and why]:
We inherit from the base theme in the rest of the app (which we weren't doing before). This may override some Android defaults and we may get some strangely styled UI. However, I see nothing wrong with all of the interactions that I've made with the UI so I doubt anything will happen.
[String/UUID change made/needed]: None
Attachment #8584194 -
Flags: approval-mozilla-aurora?
| Assignee | ||
Updated•11 years ago
|
Whiteboard: [leave-open]
Updated•11 years ago
|
status-firefox38:
--- → affected
Comment 16•11 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Attachment #8584194 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Updated•11 years ago
|
Attachment #8583993 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 17•11 years ago
|
||
Comment on attachment 8583993 [details]
MozReview Request: bz://1148041/mcomella
This missed the uplift to Aurora. It'll need to go through the Beta approval process.
Attachment #8583993 -
Flags: approval-mozilla-aurora+
Updated•11 years ago
|
Attachment #8584194 -
Flags: approval-mozilla-aurora+
| Assignee | ||
Comment 18•11 years ago
|
||
Comment on attachment 8583993 [details]
MozReview Request: bz://1148041/mcomella
Approval Request Comment 5
Attachment #8583993 -
Flags: approval-mozilla-beta?
Attachment #8583993 -
Flags: approval-mozilla-aurora?
| Assignee | ||
Comment 19•11 years ago
|
||
Comment on attachment 8584194 [details] [diff] [review]
Inherit from Gecko theme in share overlay
Approval Request Comment 15
Attachment #8584194 -
Flags: approval-mozilla-beta?
Attachment #8584194 -
Flags: approval-mozilla-aurora?
| Assignee | ||
Updated•11 years ago
|
Attachment #8584194 -
Flags: approval-mozilla-aurora?
| Assignee | ||
Updated•11 years ago
|
Attachment #8583993 -
Flags: approval-mozilla-aurora?
Comment 20•11 years ago
|
||
Verified fixed on latest Nightly 40.0a1 and Aurora 39.0a1 on Nexus 5 with Android 5.0.2
Status: RESOLVED → VERIFIED
Comment 21•11 years ago
|
||
Comment on attachment 8583993 [details]
MozReview Request: bz://1148041/mcomella
Should be in 38 beta 2
Attachment #8583993 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 22•11 years ago
|
||
Comment on attachment 8584194 [details] [diff] [review]
Inherit from Gecko theme in share overlay
Should be in 38 beta 2
Attachment #8584194 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 23•11 years ago
|
||
I didn't make it for beta 2, probably beta 4
Updated•11 years ago
|
Flags: qe-verify+
| Assignee | ||
Comment 24•11 years ago
|
||
Comment 25•11 years ago
|
||
Verified fixed on Firefox 38 Beta 3 on Nexus 5 (Android 5.1)
| Assignee | ||
Comment 26•11 years ago
|
||
Attachment #8583993 -
Attachment is obsolete: true
Attachment #8619887 -
Flags: review+
| Assignee | ||
Comment 27•11 years ago
|
||
Updated•8 years ago
|
Flags: qe-verify+
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•