-
Notifications
You must be signed in to change notification settings - Fork 905
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
Omnibar position: UI fixes #5003
Omnibar position: UI fixes #5003
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
6b11d0b
to
39c7a9f
Compare
4e42bc7
to
30c23f5
Compare
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.
Added some early feedback. Overall the solution looks much better than before, but I’ll hold any more review until the outstanding issues are solved.
app/src/main/java/com/duckduckgo/app/browser/BrowserTabFragment.kt
Outdated
Show resolved
Hide resolved
@@ -76,6 +76,7 @@ class BottomAppBarBehavior<V : View>(context: Context, attrs: AttributeSet) : Co | |||
) { | |||
super.onNestedPreScroll(coordinatorLayout, child, target, dx, dy, consumed, type) | |||
|
|||
// don't hide the app bar in the autocomplete suggestions list or the NTP | |||
if (target.id != R.id.autoCompleteSuggestionsList && target.id != com.duckduckgo.newtabpage.impl.R.id.newTabContentScroll) { |
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 targetting specific ids safe? Can we pass the ids as part of the class constructor instead?
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.
The behavior is applied in the layout, as well, so probably not. But I’ve since changed this because the only target we really want is the webView. See the latest changes.
d4df09f
to
0bb3b70
Compare
62f9087
to
651f9a4
Compare
Task/Issue URL: https://app.asana.com/0/0/1208157864474373/f ### Description ### Steps to test this PR - [ ] Start the omnibar at the top - [ ] Reload the page and notice the dummy toolbar is shown at the top - [ ] Change the omnibar to the bottom - [ ] Reload the page and notice the dummy toolbar is shown at the bottom
Task/Issue URL: https://app.asana.com/0/1207418217763355/1208166986247266/f - [ ] Change the omnibar position to the bottom - [ ] Start typing in the address bar - [ ] Notice the suggestions are correctly displayed above the toolbar | Before | After | | ------ | ----- | ![image](https://github.com/user-attachments/assets/dfae5e47-a6e1-4d4d-bc25-4847ef4a0a32)|![image](https://github.com/user-attachments/assets/7ef7a0f9-cc74-41f5-8f28-d1d3462b740f)|
Translate strings to values-es Translate strings to values-ro Translate strings to values-tr Translate strings to values-sk Translate strings to values-ru Translate strings to values-et Translate strings to values-it Translate strings to values-pl Translate strings to values-bg Translate strings to values-lv Translate strings to values-fi Translate strings to values-sl Translate strings to values-nl Translate strings to values-hr Translate strings to values-hu Translate strings to values-nb Translate strings to values-sv Translate strings to values-da Translate strings to values-el Translate strings to values-fr Translate strings to values-lt Translate strings to values-pt Translate strings to values-cs
Translate strings to values-es Translate strings to values-ro Translate strings to values-tr Translate strings to values-sk Translate strings to values-ru Translate strings to values-et Translate strings to values-it Translate strings to values-pl Translate strings to values-bg Translate strings to values-lv Translate strings to values-fi Translate strings to values-sl Translate strings to values-nl Translate strings to values-hr Translate strings to values-hu Translate strings to values-nb Translate strings to values-sv Translate strings to values-da Translate strings to values-el Translate strings to values-fr Translate strings to values-lt Translate strings to values-pt Translate strings to values-cs
This reverts commit 353fdf6.
…le it so snackbar offsetting works
651f9a4
to
f6557ca
Compare
81f856a
to
5489ecb
Compare
…t.kt Co-authored-by: David González <malmstein@gmail.com>
…kduckgo/Android into feature/ondrej/omnibar-postion-fixes
Task/Issue URL: https://app.asana.com/0/1207418217763355/1208269999932720/f This PR contains multiple design fixes but mainly addresses an issue with a fixes-size websites that were covered by the bottom toolbar. Fixes issues: - Browser menu not shown at the correct position after tapping the menu button with the keyboard open - Incorrect autocomplete suggestion icons - Bottom toolbar covering up the web content of fixed-sized websites - Tapping on a bottom toolbar’s edges leaked clicks to the web view - Onboarding dialog and NTP had extra padding at the top when toolbar at the bootom - There was a zombie shadow of the toolbar https://github.com/user-attachments/assets/c5a7ae9a-f543-433b-9ef7-562f17f3af39 ![Screenshot_20240910_132343](https://github.com/user-attachments/assets/d7c864aa-0912-4ca7-b046-aa14b97a8202) ![Screenshot_20240910_132443](https://github.com/user-attachments/assets/48a78d4a-5860-4e00-a0dc-922aae7d3ef5) ![Screenshot_20240913_003744](https://github.com/user-attachments/assets/3cffb693-7eac-413f-a304-436e6b3795fa) ![Screenshot_20240913_003843](https://github.com/user-attachments/assets/63b1f5a9-fd03-4cbd-a089-5c6dae18ae04) ![Screenshot_20240913_003932](https://github.com/user-attachments/assets/8e6f9172-1833-4899-a544-1ec922926740) ![Screenshot_20240913_004024](https://github.com/user-attachments/assets/054fea28-267b-4d7f-a91b-c4e4df26d021) ![Screenshot_20240913_011751](https://github.com/user-attachments/assets/28a5ed01-91b7-480d-80cc-644d6a4e94f1) --------- Co-authored-by: Dax The Translator <daxmobile@duckduckgo.com> Co-authored-by: David González <malmstein@gmail.com>
Task/Issue URL: https://app.asana.com/0/1207418217763355/1208269999932720/f This PR contains multiple design fixes but mainly addresses an issue with a fixes-size websites that were covered by the bottom toolbar. Fixes issues: - Browser menu not shown at the correct position after tapping the menu button with the keyboard open - Incorrect autocomplete suggestion icons - Bottom toolbar covering up the web content of fixed-sized websites - Tapping on a bottom toolbar’s edges leaked clicks to the web view - Onboarding dialog and NTP had extra padding at the top when toolbar at the bootom - There was a zombie shadow of the toolbar https://github.com/user-attachments/assets/c5a7ae9a-f543-433b-9ef7-562f17f3af39 ![Screenshot_20240910_132343](https://github.com/user-attachments/assets/d7c864aa-0912-4ca7-b046-aa14b97a8202) ![Screenshot_20240910_132443](https://github.com/user-attachments/assets/48a78d4a-5860-4e00-a0dc-922aae7d3ef5) ![Screenshot_20240913_003744](https://github.com/user-attachments/assets/3cffb693-7eac-413f-a304-436e6b3795fa) ![Screenshot_20240913_003843](https://github.com/user-attachments/assets/63b1f5a9-fd03-4cbd-a089-5c6dae18ae04) ![Screenshot_20240913_003932](https://github.com/user-attachments/assets/8e6f9172-1833-4899-a544-1ec922926740) ![Screenshot_20240913_004024](https://github.com/user-attachments/assets/054fea28-267b-4d7f-a91b-c4e4df26d021) ![Screenshot_20240913_011751](https://github.com/user-attachments/assets/28a5ed01-91b7-480d-80cc-644d6a4e94f1) --------- Co-authored-by: Dax The Translator <daxmobile@duckduckgo.com> Co-authored-by: David González <malmstein@gmail.com>
Task/Issue URL: https://app.asana.com/0/1207418217763355/1208269999932720/f This PR contains multiple design fixes but mainly addresses an issue with a fixes-size websites that were covered by the bottom toolbar. Fixes issues: - Browser menu not shown at the correct position after tapping the menu button with the keyboard open - Incorrect autocomplete suggestion icons - Bottom toolbar covering up the web content of fixed-sized websites - Tapping on a bottom toolbar’s edges leaked clicks to the web view - Onboarding dialog and NTP had extra padding at the top when toolbar at the bootom - There was a zombie shadow of the toolbar https://github.com/user-attachments/assets/c5a7ae9a-f543-433b-9ef7-562f17f3af39 ![Screenshot_20240910_132343](https://github.com/user-attachments/assets/d7c864aa-0912-4ca7-b046-aa14b97a8202) ![Screenshot_20240910_132443](https://github.com/user-attachments/assets/48a78d4a-5860-4e00-a0dc-922aae7d3ef5) ![Screenshot_20240913_003744](https://github.com/user-attachments/assets/3cffb693-7eac-413f-a304-436e6b3795fa) ![Screenshot_20240913_003843](https://github.com/user-attachments/assets/63b1f5a9-fd03-4cbd-a089-5c6dae18ae04) ![Screenshot_20240913_003932](https://github.com/user-attachments/assets/8e6f9172-1833-4899-a544-1ec922926740) ![Screenshot_20240913_004024](https://github.com/user-attachments/assets/054fea28-267b-4d7f-a91b-c4e4df26d021) ![Screenshot_20240913_011751](https://github.com/user-attachments/assets/28a5ed01-91b7-480d-80cc-644d6a4e94f1) --------- Co-authored-by: Dax The Translator <daxmobile@duckduckgo.com> Co-authored-by: David González <malmstein@gmail.com>
Task/Issue URL: https://app.asana.com/0/1207418217763355/1208269999932720/f
Description
This PR contains multiple design fixes but mainly addresses an issue with a fixes-size websites that were covered by the bottom toolbar.
Fixes issues:
UI changes
Screen_recording_20240913_015829.mp4