Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

[Bug] Tab counter flickers #11739

Closed
hkaancaliskan opened this issue Jun 18, 2020 · 7 comments
Closed

[Bug] Tab counter flickers #11739

hkaancaliskan opened this issue Jun 18, 2020 · 7 comments
Assignees
Labels
🐞 bug Crashes, Something isn't working, .. Feature:Tabs

Comments

@hkaancaliskan
Copy link

hkaancaliskan commented Jun 18, 2020

Put Log.d() to necessary lines to watch count.

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, thus setCount() works on every newTab fab pressing and this causes flicker.

┆Issue is synchronized with this Jira Task

@hkaancaliskan hkaancaliskan added the 🐞 bug Crashes, Something isn't working, .. label Jun 18, 2020
@github-actions github-actions bot added the needs:triage Issue needs triage label Jun 18, 2020
@hkaancaliskan
Copy link
Author

hkaancaliskan commented Jun 18, 2020

Looks like we need to save tab count somewhere out of there to prevent resetting.
I'm unable to do this. Whoever wants this issue can take.

@hkaancaliskan
Copy link
Author

Properly handling this.count doesn't solve issue. Looks like problem is something another. Investigating.

@hkaancaliskan hkaancaliskan changed the title [Bug] Tab counter flickers because this.count always reset to 0 [Bug] Tab counter flickers Jun 19, 2020
@hkaancaliskan
Copy link
Author

hkaancaliskan commented Jun 19, 2020

Fixed issue.
Tab counter init was adding 3dp top and right padding, idk why.
This padding causing the flicker.
I've changed it.

@gabrielluong
Copy link
Member

Fixed issue.
Tab counter init was adding 3dp top and right padding, idk why.
This padding causing the flicker.
I've changed it.

@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.

@hkaancaliskan
Copy link
Author

hkaancaliskan commented Jun 19, 2020

Fixed issue.
Tab counter init was adding 3dp top and right padding, idk why.
This padding causing the flicker.
I've changed it.

@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?
https://gist.github.com/hakkikaancaliskan/d11a07c5a963051b28498fdba1a1c06a

@gabrielluong
Copy link
Member

Fixed issue.
Tab counter init was adding 3dp top and right padding, idk why.
This padding causing the flicker.
I've changed it.

@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?
https://gist.github.com/hakkikaancaliskan/d11a07c5a963051b28498fdba1a1c06a

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.

@hkaancaliskan
Copy link
Author

Fixed issue.
Tab counter init was adding 3dp top and right padding, idk why.
This padding causing the flicker.
I've changed it.

@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?
https://gist.github.com/hakkikaancaliskan/d11a07c5a963051b28498fdba1a1c06a

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

BranescuMihai pushed a commit to BranescuMihai/fenix that referenced this issue Jun 24, 2020
BranescuMihai pushed a commit to BranescuMihai/fenix that referenced this issue Jun 24, 2020
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
ekager pushed a commit to BranescuMihai/fenix that referenced this issue Jun 25, 2020
ekager pushed a commit to BranescuMihai/fenix that referenced this issue Jun 25, 2020
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
@ekager ekager closed this as completed in 3dc6c43 Jun 25, 2020
ekager pushed a commit that referenced this issue Jun 25, 2020
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
@liuche liuche mentioned this issue Jun 27, 2020
12 tasks
@data-sync-user data-sync-user changed the title [Bug] Tab counter flickers FNX2-16647 ⁃ [Bug] Tab counter flickers Aug 1, 2020
@data-sync-user data-sync-user changed the title FNX2-16647 ⁃ [Bug] Tab counter flickers FNX3-14871 ⁃ [Bug] Tab counter flickers Aug 11, 2020
@data-sync-user data-sync-user changed the title FNX3-14871 ⁃ [Bug] Tab counter flickers FNX-12718 ⁃ [Bug] Tab counter flickers Aug 11, 2020
@data-sync-user data-sync-user changed the title FNX-12718 ⁃ [Bug] Tab counter flickers FNX2-16647 ⁃ [Bug] Tab counter flickers Aug 11, 2020
@data-sync-user data-sync-user changed the title FNX2-16647 ⁃ [Bug] Tab counter flickers [Bug] Tab counter flickers May 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Crashes, Something isn't working, .. Feature:Tabs
Projects
None yet
Development

No branches or pull requests

3 participants