Closed
Bug 840868
Opened 13 years ago
Closed 12 years ago
[Overdraw] Window background should be reset
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 22
People
(Reporter: sriram, Assigned: sriram)
References
Details
Attachments
(1 file)
999 bytes,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
It's good to set window background in XML, so that Android makes it feel like the app has started loading when launching from launcher. It's like the background on a webpage. Like in a webpage, its good to have the background for the entire page, and leave the individual elements transparent. However, we cannot do that as we have 3-4 different layers in the content section of our gecko-app. Hence the windowBackground is pretty useless once the app has loaded. This can be removed reducing the overdraw.
Assignee | ||
Comment 1•13 years ago
|
||
This reduces overdraw in about:home section. I could see the about:home go from all red to less red in background area. WIN! :D
Attachment #713282 -
Flags: review?(mark.finkle)
Comment 2•13 years ago
|
||
Comment on attachment 713282 [details] [diff] [review]
Patch
Review of attachment 713282 [details] [diff] [review]:
-----------------------------------------------------------------
::: mobile/android/base/GeckoApp.java
@@ +2069,5 @@
>
> if (!mInitialized && hasFocus)
> initialize();
> +
> + getWindow().setBackgroundDrawable(null);
Maybe it makes more sense to just do it once after the initialize() call (inside the 'if')?
Comment 3•12 years ago
|
||
Comment on attachment 713282 [details] [diff] [review]
Patch
I agree with Lucas. It seems like something we should only call one time. Moving it into the "if" block would make that happen.
r+, but move into the if block
Attachment #713282 -
Flags: review?(mark.finkle) → review+
Assignee | ||
Comment 4•12 years ago
|
||
Comment 5•12 years ago
|
||
Assignee: nobody → sriram
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 22
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
•