Closed
Bug 938205
Opened 10 years ago
Closed 10 years ago
Factor out editing UI into a separate View
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 28
People
(Reporter: lucasr, Assigned: lucasr)
References
Details
Attachments
(2 files)
4.08 KB,
patch
|
sriram
:
review+
|
Details | Diff | Splinter Review |
38.64 KB,
patch
|
sriram
:
review+
|
Details | Diff | Splinter Review |
This is self-contained and should live in a separate view to unbloat BrowserToolbar a bit.
Assignee | ||
Comment 1•10 years ago
|
||
Assignee | ||
Comment 2•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Attachment #831599 -
Flags: review?(sriram)
Assignee | ||
Comment 3•10 years ago
|
||
Comment on attachment 831600 [details] [diff] [review] Factor out editing UI into ToolbarEditLayout (r=sriram) More chopping coming soon.
Attachment #831600 -
Flags: review?(sriram)
Comment 4•10 years ago
|
||
Comment on attachment 831599 [details] [diff] [review] Remove unused imports from BrowserToolbar (r=sriram) Review of attachment 831599 [details] [diff] [review]: ----------------------------------------------------------------- import omg.that.is.better;
Attachment #831599 -
Flags: review?(sriram) → review+
Comment 5•10 years ago
|
||
Comment on attachment 831600 [details] [diff] [review] Factor out editing UI into ToolbarEditLayout (r=sriram) Review of attachment 831600 [details] [diff] [review]: ----------------------------------------------------------------- Looks good to me. Please change the mContext to getContext(). ::: mobile/android/base/toolbar/ToolbarEditLayout.java @@ +26,5 @@ > +import android.widget.ImageButton; > + > +public class ToolbarEditLayout extends GeckoLinearLayout { > + > + private final Context mContext; This is not needed. Use getContext() when needed. @@ +105,5 @@ > + final String contentDescription; > + > + if (textType == TextType.SEARCH_QUERY) { > + imageResource = R.drawable.ic_url_bar_search; > + contentDescription = mContext.getString(R.string.search); getContext() is sufficient.
Updated•10 years ago
|
Attachment #831600 -
Flags: review?(sriram) → review+
Assignee | ||
Comment 6•10 years ago
|
||
(In reply to Sriram Ramasubramanian [:sriram] from comment #5) > Comment on attachment 831600 [details] [diff] [review] > Factor out editing UI into ToolbarEditLayout (r=sriram) > > Review of attachment 831600 [details] [diff] [review]: > ----------------------------------------------------------------- > > Looks good to me. Please change the mContext to getContext(). > > ::: mobile/android/base/toolbar/ToolbarEditLayout.java > @@ +26,5 @@ > > +import android.widget.ImageButton; > > + > > +public class ToolbarEditLayout extends GeckoLinearLayout { > > + > > + private final Context mContext; > > This is not needed. Use getContext() when needed. > > @@ +105,5 @@ > > + final String contentDescription; > > + > > + if (textType == TextType.SEARCH_QUERY) { > > + imageResource = R.drawable.ic_url_bar_search; > > + contentDescription = mContext.getString(R.string.search); > > getContext() is sufficient. Fair enough, done. I do wonder why you didn't catch that on the ToolbarEditText patch :-)
Assignee | ||
Comment 7•10 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/eb8ef0e80c9c https://hg.mozilla.org/integration/fx-team/rev/ea5939461476
Comment 8•10 years ago
|
||
Backed out for suspicion of causing mass robocop failures. https://hg.mozilla.org/integration/fx-team/rev/fa367f4785cb https://tbpl.mozilla.org/php/getParsedLog.php?id=30965139&tree=Fx-Team https://tbpl.mozilla.org/php/getParsedLog.php?id=30963985&tree=Fx-Team https://tbpl.mozilla.org/php/getParsedLog.php?id=30964585&tree=Fx-Team
Comment 9•10 years ago
|
||
Turned out to be some sort of needs-clobber situation. Re-landed and confirmed green. https://hg.mozilla.org/integration/fx-team/rev/d37c31a42f31 https://hg.mozilla.org/integration/fx-team/rev/0b75c809f3f7
Whiteboard: [fixed-in-fx-team]
Comment 10•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/d37c31a42f31 https://hg.mozilla.org/mozilla-central/rev/0b75c809f3f7
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 28
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
•