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)

ARM
Android
defect

Tracking

(firefox14 verified, blocking-fennec1.0 +, fennec14+)

VERIFIED FIXED
Firefox 14
Tracking Status
firefox14 --- verified
blocking-fennec1.0 --- +
fennec 14+ ---

People

(Reporter: xti, Assigned: sriram)

References

Details

Attachments

(7 files, 4 obsolete files)

Attached image screenshot
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
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
Assignee: nobody → sriram
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.
tracking-fennec: --- → 14+
Priority: -- → P3
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
blocking-fennec1.0: ? → +
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.
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
.. (accidental enter in previous comment :( ) continuing.. 

Some weak-reference in Resources is the trouble.
Attached patch Patch (obsolete) — Splinter Review
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)
Attached patch Patch (obsolete) — Splinter Review
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)
Blocks: 737479
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.
This changes the gradiented background to non-gradiented version -- like in about:home.
Attachment #607761 - Flags: review?(mark.finkle)
Attached patch Patch: Option 2 and a half (obsolete) — Splinter Review
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 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 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)
Attached patch Patch: FinalSplinter Review
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)
Attachment #608038 - Flags: review?(mark.finkle) → review+
Attachment #607770 - Attachment is obsolete: true
Attachment #607356 - Attachment is obsolete: true
Attachment #607356 - Flags: review?(mark.finkle)
\o/
https://hg.mozilla.org/mozilla-central/rev/9044401e00d8
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 14
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
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: