Closed
Bug 894045
Opened 11 years ago
Closed 11 years ago
Gamepad support for search suggestions
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 26
People
(Reporter: bnicholson, Assigned: bnicholson)
References
Details
(Whiteboard: abouthome-hackathon, fixed-fig)
Attachments
(1 file)
11.39 KB,
patch
|
lucasr
:
review+
|
Details | Diff | Splinter Review |
Bug 876765 needs to be ported to fig so a game controller can be used to navigate search suggestions.
Comment 1•11 years ago
|
||
I just merged m-c into fig, and I punted on properly merging over the changes from bug 876765, but we should now be able to go ahead and port over that functionality without worrying about more conflicts.
Part of the problem was that on fig there was already a home/SearchEngineRow class, and I didn't want to try to manually go through the SearchEngineRow class on m-c to compare exactly what changes needed to make their way over.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → bnicholson
Status: NEW → ASSIGNED
Whiteboard: abouthome-hackathon
Assignee | ||
Comment 2•11 years ago
|
||
Pretty much just a copy/paste from central.
Attachment #781300 -
Flags: review?(lucasr.at.mozilla)
Comment 3•11 years ago
|
||
Comment on attachment 781300 [details] [diff] [review]
Add gamepad support for search suggestions
Review of attachment 781300 [details] [diff] [review]:
-----------------------------------------------------------------
Nice.
::: mobile/android/base/home/BrowserSearch.java
@@ +232,5 @@
> +
> + mList.setOnKeyListener(new View.OnKeyListener() {
> + @Override
> + public boolean onKey(View v, int keyCode, android.view.KeyEvent event) {
> + View selected = mList.getSelectedView();
final
@@ +235,5 @@
> + public boolean onKey(View v, int keyCode, android.view.KeyEvent event) {
> + View selected = mList.getSelectedView();
> +
> + if (selected instanceof SearchEngineRow) {
> + return ((SearchEngineRow) selected).onKeyDown(keyCode, event);
Do you really need this casting here? AFAIK, onKeyDown is part of View's API.
Attachment #781300 -
Flags: review?(lucasr.at.mozilla) → review+
Assignee | ||
Comment 4•11 years ago
|
||
(In reply to Lucas Rocha (:lucasr) from comment #3)
> @@ +235,5 @@
> > + public boolean onKey(View v, int keyCode, android.view.KeyEvent event) {
> > + View selected = mList.getSelectedView();
> > +
> > + if (selected instanceof SearchEngineRow) {
> > + return ((SearchEngineRow) selected).onKeyDown(keyCode, event);
>
> Do you really need this casting here? AFAIK, onKeyDown is part of View's API.
Nope, good catch.
https://hg.mozilla.org/projects/fig/rev/962211a2b765
Whiteboard: abouthome-hackathon → abouthome-hackathon, fixed-fig
Comment 5•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 26
Updated•4 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
•