@gabrielluong If ux team decide how it should be, i can take this issue. Needs ux feedback.
@gabrielluong If ux team decide how it should be, i can take this issue. Needs ux feedback.
Requested. @topotropic is still away for another week I think. Thanks!
Yes, please close the drawer when people don't have any open tabs and show new tab/home with top sites, collections.... Thanks!
@gabrielluong i don't have time to work on this currently, maybe later. Other guys could work on this.
@topotropic when you close the last tab - we should still show the undo option though? This piece could be tricky
The way I handled that for the tab counter menu was to provide a the sessionId as an argument to the nav action that returns to HomeFragment and have HomeFragment handle the tab closing and snackbar.
Nice, so I'm assuming that's what we'd want to do here as well.
The way I handled that for the tab counter menu was to provide a the sessionId as an argument to the nav action that returns to
HomeFragmentand haveHomeFragmenthandle the tab closing and snackbar.
does this mean we close the tab tray and show the undo snackbar on home when people close their last tab?
@topotropic Yup. If we take the same approach as the tab counter menu then thats what it'll look like.
What should happen in the case where a user has:
1 normal tab
2 private tabs
Closes last normal tab.... should it dismiss (same goes for the inverse)? @topotropic
The behavior that happens by "default" with my change is:
User State:
1 normal tab
2 private tabs
Then...
Close my normal tab
Then...
Now Fenix shows private home screen (with tray dismissed).
Which actually seems pretty reasonable to me?
Verified as fixed on Nightly 7/24 with Samsung Galaxy Note 10(Android 10) and LG G7 FIT (Android 8).
Scenarios covered: normal browsing, private browsing, closing private tab from the notification.