-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[Bug] Tab counter flickers #11739
Comments
Looks like we need to save tab count somewhere out of there to prevent resetting. |
Properly handling this.count doesn't solve issue. Looks like problem is something another. Investigating. |
Fixed issue. |
@hakkikaancaliskan Would you be available to also upstream these changes to android-components? https://github.com/mozilla-mobile/android-components/blob/ca3eff8a75ec791d718e5ceddc03285c8357836e/components/ui/tabcounter/src/main/java/mozilla/components/ui/tabcounter/TabCounter.kt Ideally, we would always use the components from android-components since it is meant to be re-usable beyond Fenix. We have another issue mozilla-mobile/android-components#2743 to eventually upstream all the downstream Fenix changes to the android-components and remove the duplication in Fenix. You can build the sample-browser in the android-components repo to test any TabCounter changes. |
I've done this in a gist because I'm not good at components. Is this enough or need more work? |
Ideally, a PR for components so that it could be reviewed and landed by a peer. Feel free to reach out on https://chat.mozilla.org/#/room/#android-components:mozilla.org if you need help. |
Opened pr, mozilla-mobile/android-components#7446 |
Fixes mozilla-mobile#11672, mozilla-mobile#11727: Empty default tab text and add padding to infinite character Fixes mozilla-mobile#11739: Fix flicker Update TabCounter.kt make lint happy don't animate unnecessarily don't animate unnecessarily Fixes mozilla-mobile#11739: Fix flicker Update TabCounter.kt squash commits don't animate unnecessarily Fixes mozilla-mobile#11672, mozilla-mobile#11727: Empty default tab text and add padding to infinite character Fixes mozilla-mobile#11739: Fix flicker Update TabCounter.kt make lint happy don't animate unnecessarily
Fixes mozilla-mobile#11672, mozilla-mobile#11727: Empty default tab text and add padding to infinite character Fixes mozilla-mobile#11739: Fix flicker Update TabCounter.kt make lint happy don't animate unnecessarily don't animate unnecessarily Fixes mozilla-mobile#11739: Fix flicker Update TabCounter.kt squash commits don't animate unnecessarily Fixes mozilla-mobile#11672, mozilla-mobile#11727: Empty default tab text and add padding to infinite character Fixes mozilla-mobile#11739: Fix flicker Update TabCounter.kt make lint happy don't animate unnecessarily
Fixes #11672, #11727: Empty default tab text and add padding to infinite character Fixes #11739: Fix flicker Update TabCounter.kt make lint happy don't animate unnecessarily don't animate unnecessarily Fixes #11739: Fix flicker Update TabCounter.kt squash commits don't animate unnecessarily Fixes #11672, #11727: Empty default tab text and add padding to infinite character Fixes #11739: Fix flicker Update TabCounter.kt make lint happy don't animate unnecessarily
Put
Log.d()
to necessary lines to watchcount
.fenix/app/src/main/java/org/mozilla/fenix/components/toolbar/TabCounter.kt
Line 53 in 54d7fc1
Open new tab, go home, open tab tray, tap to addTab fab etc. Watch changes of
this.count
.Looks like
this.count
reset to 0 while navigating, thussetCount()
works on every newTab fab pressing and this causes flicker.┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: