Closed Bug 1885583 Opened 1 year ago Closed 7 months ago

[Menu Redesign] Add BottomSheetDialog.dismiss() when onRequestDismiss is called

Categories

(Fenix :: Toolbar, task, P1)

All
Android
task

Tracking

(firefox130 fixed)

RESOLVED FIXED
130 Branch
Tracking Status
firefox130 --- fixed

People

(Reporter: royang, Assigned: giorga)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid])

Attachments

(1 file)

A predictive back is when the user swipes left -> right or right -> left from the edge of the screen, it will dismiss/close the menu.

Design here: https://www.figma.com/file/RFz9fYtotQCQuinwcZujZt/Menu-Redesign?type=design&node-id=10858-82006&mode=design&t=lu0I4xY5gKXPXbUz-4

Summary: Implement predictive back behaviour → [Menu Redesign] Implement predictive back behaviour
Depends on: 1885578
Whiteboard: [fxdroid]
Severity: -- → S2
Severity: S2 → S3
Severity: S3 → N/A

Does this involve opting-in to predictive back entirely or at an activity level?

See Also: → 1902299

The predictive back behaviour is different for the sub-menu.

  • If a user does predictive back in the sub-menu, it takes them to the main menu. It does not close the menu component.
  • If a user does predictive back on the main menu, it closes the menu component.

Should that be a separate ticket?

Flags: needinfo?(royang)
Flags: needinfo?(royang) → needinfo?(gl)
Priority: -- → P1

(In reply to Aarjav [:aarjav] from comment #2)

The predictive back behaviour is different for the sub-menu.

  • If a user does predictive back in the sub-menu, it takes them to the main menu. It does not close the menu component.
  • If a user does predictive back on the main menu, it closes the menu component.

Should that be a separate ticket?

I think this can both be resolved in this ticket depending on the assignee. If not, we can always file a follow up for anything that is not covered.

Flags: needinfo?(gl)
Assignee: nobody → giorga
Status: NEW → ASSIGNED

Isn't this functionality already working?:

  • back in a submenu should return to menu
  • back in menu should close it

Is the default behavior for when swiping horizontally from the edge of the screen - this gesture is seen as a back press.

The predictive back gesture framework aims to show an animated preview of where the user would get when pressing back - https://developer.android.com/guide/navigation/custom-back/predictive-back-gesture
Not sure we need that for the menu/submenu.

See Also: → 1910367
Attachment #9416264 - Attachment description: Bug 1885583 - [Menu Redesign] Implement predictive back behaviour → Bug 1885583 - [Menu Redesign]Add BottomSheetDialog.dismiss() when onRequestDismiss is called.
Pushed by giorga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0c344778a17f [Menu Redesign]Add BottomSheetDialog.dismiss() when onRequestDismiss is called. r=android-reviewers,gl
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
Summary: [Menu Redesign] Implement predictive back behaviour → [Menu Redesign]] Add BottomSheetDialog.dismiss() when onRequestDismiss is called
Summary: [Menu Redesign]] Add BottomSheetDialog.dismiss() when onRequestDismiss is called → [Menu Redesign] Add BottomSheetDialog.dismiss() when onRequestDismiss is called

Re-purposed this bug to handle dismissing the bottom sheet when onRequestDismiss in the bottom sheet handle is called.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: