Closed
Bug 727438
Opened 12 years ago
Closed 12 years ago
Grey horizontal band of pixels on bottom layer of URL bar
Categories
(Firefox for Android Graveyard :: General, defect, P3)
Tracking
(firefox14 verified, blocking-fennec1.0 +, fennec14+)
VERIFIED
FIXED
Firefox 14
People
(Reporter: xti, Assigned: sriram)
References
Details
Attachments
(7 files, 4 obsolete files)
The grey horizontal band is visible both in landscape and portrait on Samsung Galaxy TAB 10.1 -- Firefox 13.0a1 (2012-02-15) 20120215040239 http://hg.mozilla.org/projects/maple/rev/c8e21328ea71
Comment 1•12 years ago
|
||
This has nothing to do with GL Layers, and happens on Nightly.
Summary: MAPLE: Grey horizontal band on bottom layer of URLBar → [Tablet] - Grey horizontal band on bottom layer of URL bar
Whiteboard: MAPLE
Updated•12 years ago
|
Assignee: nobody → sriram
Assignee | ||
Comment 2•12 years ago
|
||
Aah, I remember this. Honeycomb uses a 56dip ActionBar. However our image for "mdpi" is just 48dip and hence it starts repeating. I would like to wait till tablet UI is finalized to come up with a solution for this.
Updated•12 years ago
|
tracking-fennec: --- → 14+
Priority: -- → P3
Comment 3•12 years ago
|
||
Seeing this on the Galaxy Nexus frequently.
blocking-fennec1.0: --- → ?
Summary: [Tablet] - Grey horizontal band on bottom layer of URL bar → Grey horizontal band of pixels on bottom layer of URL bar
Comment 4•12 years ago
|
||
Updated•12 years ago
|
blocking-fennec1.0: ? → +
Assignee | ||
Comment 5•12 years ago
|
||
I tried tracking the rotation changes at Application level and passing it to GeckoApp. There is a race condition here: When the application is in background: - Application gets the rotation change When the application is in foreground: - Either of application or activity can get the rotation change first. And if the application receives it and informs GeckoApp, and GeckoApp tries to redraw the layout (but still feels the orientation is not changed), we run into this grey band of pixels in the URL bar -- basically the resources are taken for the other orientation. Posting the redrawing after a time delay doesn't help either. There is an animation happening during the rotation, and the time taken for it is not constant. A better approach would be fire 3 re-draws per rotation, at say 500ms interval.
Assignee | ||
Comment 6•12 years ago
|
||
3 re-draws per rotation works fine on Nexus S. There is no flickering too. However, Galaxy Nexus is reluctant to draw. I still see this issue with the grey bar showing up. I've tried invalidating drawables, still it doesn't work. Some weak-reference
Assignee | ||
Comment 7•12 years ago
|
||
.. (accidental enter in previous comment :( ) continuing.. Some weak-reference in Resources is the trouble.
Assignee | ||
Comment 8•12 years ago
|
||
As per discussions with @mfinkle, this patch uses same resources for both portrait and landscape. This fixes the grey horizontal bar. However, the urlbar is compressed by 4dp's. The action bar is _not_ re-inflated on rotation -- this avoids flickering of url bar on rotation.
Attachment #607347 -
Flags: review?(mark.finkle)
Assignee | ||
Comment 9•12 years ago
|
||
This is same as old patch, with the font-size restricted to 22 for both landscape and portrait.
Attachment #607347 -
Attachment is obsolete: true
Attachment #607356 -
Flags: review?(mark.finkle)
Attachment #607347 -
Flags: review?(mark.finkle)
Assignee | ||
Comment 10•12 years ago
|
||
Assignee | ||
Comment 11•12 years ago
|
||
Assignee | ||
Comment 12•12 years ago
|
||
Assignee | ||
Comment 13•12 years ago
|
||
Assignee | ||
Comment 14•12 years ago
|
||
Working on this for weeks and weeks, something finally catches my attention! :O Everything is re-inflated properly, except for the background. Probably something is getting cached wrongly. As a band-aid, I ll post a patch that uses abouthome's background to be the background of urlbar. Thereby, no gradients, hence no grey bar.
Assignee | ||
Comment 15•12 years ago
|
||
This changes the gradiented background to non-gradiented version -- like in about:home.
Attachment #607761 -
Flags: review?(mark.finkle)
Assignee | ||
Comment 16•12 years ago
|
||
I was thinking of creating a new drawable folder "drawable-land/" (i know! :( ), and copying the address_bag_bg.xml into it. And it works!!! Android properly finds the resources for portrait and landscape for "repeating" and does the job perfectly! :( :( :( There is one small bar at the bottom, which I should investigate -- if it has to do with ActionBar height or something else.
Attachment #607770 -
Flags: review?(mark.finkle)
Comment 17•12 years ago
|
||
Comment on attachment 607770 [details] [diff] [review] Patch: Option 2 and a half I assume this is the patch you think best fixes the bug. Looks OK to me.
Attachment #607770 -
Flags: review?(mark.finkle) → review+
Comment 18•12 years ago
|
||
Comment on attachment 607761 [details] [diff] [review] Patch: Changing the gradiented background to non-gradiented version I don't think this is your favorite patch, so I am obsoleting it.
Attachment #607761 -
Attachment is obsolete: true
Attachment #607761 -
Flags: review?(mark.finkle)
Assignee | ||
Comment 19•12 years ago
|
||
This is the final patch! phew!! :O :O :O The previous patch used drawable-land/ -- which will affect landscape on pre-ICS phones. This patch uses drawable-land-v14/ -- which is the correct one. Also, I have resorted to renaming the address_bar_texture to "port" and "land" versions so that android doesn't get confused :D After these changes, I found a small little line on landscape mode. On a close investigation at 500% zoomed in state, myself and Ian found that there was a transparent line at the bottom of the resources. Ian gave newer resources to solve that problem. With this patch, we can be sure that we have have grey-bar problem. Note: this patch doesn't fix tablets. They will be fixed based on the tablet UI and action-bar specifications once we start working on tablets. This only fixes Galaxy Nexus and Nexus S running ICS.
Attachment #608038 -
Flags: review?(mark.finkle)
Updated•12 years ago
|
Attachment #608038 -
Flags: review?(mark.finkle) → review+
Updated•12 years ago
|
Attachment #607770 -
Attachment is obsolete: true
Updated•12 years ago
|
Attachment #607356 -
Attachment is obsolete: true
Attachment #607356 -
Flags: review?(mark.finkle)
Assignee | ||
Comment 20•12 years ago
|
||
http://hg.mozilla.org/integration/mozilla-inbound/rev/9044401e00d8
Comment 21•12 years ago
|
||
\o/
Comment 22•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/9044401e00d8
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 14
Comment 23•12 years ago
|
||
Verified/fixed on: Nightly Fennec 14.0a1 (2012-03-29) Device: Galaxy Nexus - Android 4.0.2 Device: Samsung Nexus S - Android 2.3.6
Status: RESOLVED → VERIFIED
status-firefox14:
--- → verified
Updated•3 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
•