Closed Bug 1110350 Opened 10 years ago Closed 3 years ago

Have TabsPanel and TabsPanelToolbar extend ThemedLinearLayout

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: mcomella, Unassigned, Mentored)

References

Details

(Whiteboard: [lang=java][good next bug])

Currently, both TabsPanel and TabsPanelToolbar implement LightweightTheme.OnChangeListener and duplicate a lot of functionality from ThemedLinearLayout.

Extend ThemeLinearLayout in these classes, calling the super methods and removing the code duplication. You should check over all uses of mTheme to ensure some code duplication isn't hiding (e.g. [1]).

Also, remove the mTheme instance variable in favor of using getTheme(), like bug 1110310.

[1]: https://mxr.mozilla.org/mozilla-central/source/mobile/android/base/tabs/TabsPanel.java?rev=383988745eb2#282
via email.
Assignee: nobody → protyay91banerjee
Status: NEW → ASSIGNED
Unassigning due to inactivity - Protyay, let me know if you're still working on this.
Assignee: protyay91banerjee → nobody
I want to work on this! Do I make TabsPanel and TabsPanelToolbar extend ThemedLinearLayout, instead of LinearLayout. And then remove code duplication and call the super method?
Flags: needinfo?(michael.l.comella)
Right. Let me know if you need anything.
Assignee: nobody → alexxander.dimitrov
Flags: needinfo?(michael.l.comella)
Michael, sorry for being absent for a few days. I've been having some issues with my laptop and I was getting it fixed. I will work on this this weekend. :)
No worries, Alexander! Take your time!
Assignee: alexxander.dimitrov → nobody
Status: ASSIGNED → NEW

If nobody is working on it? Can I work on It? I am new to open source and I would like to take this as my first bug to work on.

Flags: needinfo?(michael.l.comella)

I'm not actively working on FF for Android right now - redirecting to Susheel.

Flags: needinfo?(michael.l.comella) → needinfo?(sdaswani)

Thanks for your willingness to contribute askthefactorcamera!

I can't guarantee we will be able to review your patch, so I suggest you try to contribute to the following projects:

https://github.com/mozilla-mobile/firefox-tv
https://github.com/mozilla-mobile/fenix
https://github.com/mozilla-mobile/firefox-ios
https://github.com/mozilla-mobile/reference-browser
https://github.com/mozilla-lockbox

Thanks!

Flags: needinfo?(sdaswani)
We have completed our launch of our new Firefox on Android. The development of the new versions use GitHub for issue tracking. If the bug report still reproduces in a current version of [Firefox on Android nightly](https://play.google.com/store/apps/details?id=org.mozilla.fenix) an issue can be reported at the [Fenix GitHub project](https://github.com/mozilla-mobile/fenix/). If you want to discuss your report please use [Mozilla's chat](https://wiki.mozilla.org/Matrix#Connect_to_Matrix) server https://chat.mozilla.org and join the [#fenix](https://chat.mozilla.org/#/room/#fenix:mozilla.org) channel.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.