Closed
Bug 1177244
Opened 10 years ago
Closed 10 years ago
[Linter: MergeRootFrame] Use <merge> instead of <FrameLayout> where applicable
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox41 fixed)
RESOLVED
FIXED
Firefox 41
| Tracking | Status | |
|---|---|---|
| firefox41 | --- | fixed |
People
(Reporter: mcomella, Assigned: mcomella)
References
Details
Attachments
(2 files)
via android lint:
MergeRootFrame: FrameLayout can be replaced with <merge> tag
../../src/main/res/layout/overlay_share_dialog.xml:8: This <FrameLayout> can be replaced with a <merge> tag
5 - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
6
7 <!-- Serves to position the content on the screen (bottom, centered) and provide the drop-shadow -->
8 <FrameLayout
9 xmlns:android="http://schemas.android.com/apk/res/android"
10 xmlns:gecko="http://schemas.android.com/apk/res-auto"
../../src/main/res/layout/tab_queue_prompt.xml:7: This <FrameLayout> can be replaced with a <merge> tag
4 - License, v. 2.0. If a copy of the MPL was not distributed with this
5 - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
6
7 <FrameLayout
8 xmlns:android="http://schemas.android.com/apk/res/android"
9 xmlns:tools="http://schemas.android.com/tools"
Priority: 4 / 10
Category: Performance
Severity: Warning
Explanation: FrameLayout can be replaced with <merge> tag.
If a <FrameLayout> is the root of a layout and does not provide background or padding etc, it can often be replaced with a <merge> tag which is slightly more efficient. Note that this depends on context, so make sure you understand how the <merge> tag works before proceeding.
More info: http://android-developers.blogspot.com/2009/03/android-layout-tricks-3-optimize-by.html
| Assignee | ||
Comment 1•10 years ago
|
||
Bug 1177244 - Move share dialog to merge tag. r=mhaigh
Attachment #8625934 -
Flags: review?(mhaigh)
| Assignee | ||
Comment 2•10 years ago
|
||
Bug 1177244 - Move tab queue prompt to merge tag. r=mhaigh
Attachment #8625935 -
Flags: review?(mhaigh)
Updated•10 years ago
|
Attachment #8625934 -
Flags: review?(mhaigh) → review+
Comment 3•10 years ago
|
||
Comment on attachment 8625934 [details]
MozReview Request: Bug 1177244 - Move share dialog to merge tag. r=mhaigh
https://reviewboard.mozilla.org/r/11949/#review10527
Comment 4•10 years ago
|
||
Comment on attachment 8625935 [details]
MozReview Request: Bug 1177244 - Move tab queue prompt to merge tag. r=mhaigh
https://reviewboard.mozilla.org/r/11951/#review10529
Ship It!
Attachment #8625935 -
Flags: review?(mhaigh) → review+
| Assignee | ||
Comment 5•10 years ago
|
||
| Assignee | ||
Comment 6•10 years ago
|
||
Comment 7•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/abb76da74283
https://hg.mozilla.org/mozilla-central/rev/f5406c0ff694
https://hg.mozilla.org/mozilla-central/rev/99e103cb3352
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox41:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 41
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
•