Closed
Bug 1126290
Opened 9 years ago
Closed 9 years ago
Remove JavaPanZoomController.PAN_THRESHOLD and use PanZoomController.PAN_THRESHOLD
Categories
(Firefox for Android Graveyard :: Toolbar, defect)
Tracking
(firefox38 fixed)
RESOLVED
FIXED
Firefox 38
Tracking | Status | |
---|---|---|
firefox38 | --- | fixed |
People
(Reporter: kats, Assigned: mrakestraw13, Mentored)
Details
(Whiteboard: [good first bug][lang=java])
Attachments
(1 file, 1 obsolete file)
2.51 KB,
patch
|
kats
:
review+
|
Details | Diff | Splinter Review |
JavaPanZoomController has a PAN_THRESHOLD defined at [1]. The PanZoomController has an identical PAN_THRESHOLD defined at [2]. The second one was added later but the first one was never removed. We should remove it, and make sure all code using the first one is switched to using the second one. (I think there is only one place it's used inside JavaPanZoomController). [1] http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/gfx/JavaPanZoomController.java?rev=69c75b3dc3d0#56 [2] http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/gfx/PanZoomController.java?rev=9ff86c2ca064#19
Comment 1•9 years ago
|
||
Hi, I wish to work on this bug. Can you please guide me.
Reporter | ||
Comment 2•9 years ago
|
||
Sure, the first step in working on this is to get a build of Firefox for Android up and running. There are instructions on how to do this at https://wiki.mozilla.org/Mobile/Fennec/Android - please follow the instructions there and let me know once you have the build and are able to successfully run it on your device. Once you have done that I can assign the bug to you and give you more details on what needs to be done. It's a pretty simple code change that needs to be made. If you run into any problems or have any questions feel free to ask here or on IRC, in the #mobile channel. Thanks!
Comment 3•9 years ago
|
||
Thanks Kartikaya, I am onto it. I will get to you as soon as I am done with the setup.
Comment 4•9 years ago
|
||
As far as i have understood this code,I feel that in the JavaPanZoomController class we have implemented PanZoomController interface,so all we have to do is replace the PAN_THRESHOLD variable used in [1] with PanZoomController.PAN_THRESHOLD and remove the PAN_THRESHOLD variable in [1] where it was declared.....Please correct me if I am wrong...?..
Comment 5•9 years ago
|
||
Hey Kartikaya,Please look into this....
Reporter | ||
Comment 6•9 years ago
|
||
Hi Rashi, Any changes you make should be attached in the form of a patch, as it's very difficult to review changes if you just attach a modified file. Please see the instructions at [1] on how to generate patches. That being said the changes you outlined in comment 4 are correct, you just need to remove JavaPanZoomController.PAN_THRESHOLD and replace the usage with PanZoomController.PAN_THRESHOLD. Thanks! [1] https://developer.mozilla.org/en-US/docs/Mercurial_FAQ#How_can_I_generate_a_patch_for_somebody_else_to_check-in_for_me.3F
Hi, I am a new contributor to Mozilla for Android and would like to take this bug along with my team. We have a mentor to help us create the patch. Please advice for my next step, thank you.
Reporter | ||
Comment 8•9 years ago
|
||
Hi acarson13, usually I prefer if only one person works on a bug at any given time, and given Rashi just started working on this I would like to give him some more time before passing it to somebody else. Thanks!
Reporter | ||
Updated•9 years ago
|
Assignee: nobody → 2013165
Reporter | ||
Comment 9•9 years ago
|
||
Hi Rashi, Any progress on this bug? Let me know if you get stuck!
Flags: needinfo?(2013165)
Reporter | ||
Comment 10•9 years ago
|
||
Rashi said he was unable to continue working on this, so it's open for others to take.
Assignee: 2013165 → nobody
Flags: needinfo?(2013165)
Reporter | ||
Updated•9 years ago
|
Attachment #8555670 -
Attachment is obsolete: true
Assignee | ||
Comment 11•9 years ago
|
||
Hello I am new to contributing and would like to work on this bug if no one has claimed it.
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(bugmail.mozilla)
Reporter | ||
Comment 12•9 years ago
|
||
Hi Miles, yes you are welcome to work on this bug. Please see comment 2 for instructions on how to get a build up and running. Let me know once you have that, and I can assign the bug to you. Thanks!
Flags: needinfo?(bugmail.mozilla)
Assignee | ||
Comment 13•9 years ago
|
||
Excellent! I already have the environment set up so I am ready to get started right away.
Reporter | ||
Comment 14•9 years ago
|
||
Great! The changes that need to be made are pretty straightforward; just remove the PAN_THRESHOLD variable defined in mobile/android/base/gfx/JavaPanZoomController.java and replace all the use-sites of that variable with the equivalent one from PanZoomController.java. Please see [1] on how to generate a patch to attach to the bug for submission. Thanks! [1] https://developer.mozilla.org/en-US/docs/Mercurial_FAQ#How_can_I_generate_a_patch_for_somebody_else_to_check-in_for_me.3F
Assignee: nobody → mrakestraw13
Assignee | ||
Comment 15•9 years ago
|
||
Excellent I will get started. Is there an associated IRC channel, or should I direct questions to #introduction/#developer channels?
Reporter | ||
Comment 16•9 years ago
|
||
#mobile is the channel for fennec developers. I'm in there too ("kats") even though I don't work much on Fennec any more.
Assignee | ||
Comment 17•9 years ago
|
||
Just an update. I have worked the bug and am reading up on submitting the patch.
Reporter | ||
Comment 18•9 years ago
|
||
Great, thanks!
Assignee | ||
Comment 19•9 years ago
|
||
Attachment #8566210 -
Flags: review?(bugmail.mozilla)
Reporter | ||
Comment 20•9 years ago
|
||
Comment on attachment 8566210 [details] [diff] [review] bug1126290.diff Review of attachment 8566210 [details] [diff] [review]: ----------------------------------------------------------------- This looks great, thanks! The only change I would make is that when you specify the reviewer in the commit message, you should just put their handle instead of the full name and email address. In this case it would be r=kats. I can fix that up when I land the patch, but keep that in mind for future patches. I'll land this later today, once I've verified the build locally.
Attachment #8566210 -
Flags: review?(bugmail.mozilla) → review+
Reporter | ||
Comment 21•9 years ago
|
||
Landed on fx-team: https://hg.mozilla.org/integration/fx-team/rev/4d66d5d58232 It should get merged to mozilla-central in the next day or so, at which point this bug will be marked fixed. Thanks Miles!
Comment 22•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/4d66d5d58232
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox38:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 38
Assignee | ||
Comment 23•9 years ago
|
||
Thank you all for the help through this process. I look forward to contributing further. If there is anything else I can help with I would be more than willing to give it a shot. I am a senior in college and am always looking for more real world experience. Thanks again.
Reporter | ||
Comment 24•9 years ago
|
||
Thank you for choosing to contribute to Mozilla! We look forward to seeing more contributions from in the future :)
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
•