-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Split Omnibar: Tab switcher bottom bar #7056
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
0bb063a to
7edb2eb
Compare
|
I updated the bottom bar menu anchoring to cover the button here. |
malmstein
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few UI things to discuss, but nothing blocking. Since there’s a discussion still open I’m just leaving the PR open to avoid confusion.
| OmnibarType.SINGLE_TOP, OmnibarType.SPLIT -> R.string.settingsAddressBarPositionTop | ||
| OmnibarType.SINGLE_TOP -> R.string.settingsAddressBarPositionTop | ||
| OmnibarType.SINGLE_BOTTOM -> R.string.settingsAddressBarPositionBottom | ||
| OmnibarType.SPLIT -> throw IllegalStateException("Split omnibar not supported in the position selection settings") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you really wanna throw here? if this is some sort of state we don’t want to have, maybe it’s better to prevent it instead. Just crashing without doing or telling anything to the user is a bit drastic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't meant to crash an app for a user, but rather let us find a bug early when testing (basically the fail fast principle). Also, once we remove the feature flags, we'll get rid of it.
This code is used to display the old settings where there's nothing to show for the SPLIT omnibar type. It's executed only when the required feature flags are disabled, meaning OmnibarFeatureRepository.isSplitOmnibarAvailable is false. We should never get here but we still need to "handle" the new omnibar type somehow. If we do get here, it means we have bigger problems/inconsistencies because the flags are used all over the place. There already is a mechanism to prevent this state.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm gonna revert this, after all.
4a5f878 to
4d95482
Compare
1205ae9 to
d5f78ae
Compare
malmstein
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works as expected, just a question about the pixel being fired
| } | ||
|
|
||
| fun onFireButtonTapped() { | ||
| pixel.fire(AppPixelName.FORGET_ALL_PRESSED_TABSWITCHING) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this the right pixel?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this pixel for the fire button has been around since 2019.
| xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| xmlns:tools="http://schemas.android.com/tools" | ||
| android:orientation="vertical" | ||
| android:animateLayoutChanges="true" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what’s this for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's just to make the transition a bit nicer when you enter the selection mode and the bottom bar is hidden.

Task/Issue URL: https://app.asana.com/1/137249556945/project/1207418217763355/task/1211586528616254?focus=true
Description
This PR adds the bottom navigation bar to the tab switcher.
Steps to test this PR
splitOmnibarfeature flag is enabled in the internal settings