Closed Bug 1822634 Opened 3 years ago Closed 3 years ago

Refactor tab counter code from HomeFragment into TabCounterView

Categories

(Firefox for Android :: Homepage, task, P3)

All
Android
task

Tracking

()

VERIFIED FIXED
113 Branch
Tracking Status
firefox113 --- verified

People

(Reporter: gl, Assigned: gl)

References

Details

(Whiteboard: [fxdroid])

Attachments

(1 file)

We're looking to refactor the first run onboarding view out of the HomeFragment. This is part of small incremental refactoring that helps facilitate that process of decoupling the first run onboarding from the home screen.

This is to refactor bits of logic for updating the tab counter into the TabCounterView - https://searchfox.org/mozilla-mobile/source/firefox-android/fenix/app/src/main/java/org/mozilla/fenix/home/HomeFragment.kt#1032. This helps move more logic out of the HomeFragment into their respective view classes for better reusability and encapsulating all the functionality around a particular UI view.

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Flags: qe-verify+
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch

Verified on the latest Firefox nightly build 113.0a1 from 3/16 with the following devices:

  • Oppo Find X3 Lite (Android 11),
  • Lenovo tablet M10 (Android 10), and
  • Samsung Galaxy Note 8 (Android 9).

The covered scenarios were:

  • the tab counter displayed the correct number of opened tabs, both in normal and private mode,
  • the tabs tray displays correctly the opened tabs, both in list view and grid view,
  • the tab counter increases/decreases correctly when a tab is opened/closed.

Gabriel, is there anything else we should cover?

Flags: needinfo?(gl)
Status: RESOLVED → VERIFIED
Flags: qe-verify+

Nope that is great. Thank you

Flags: needinfo?(gl)
Whiteboard: [fxdroid]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: