Closed Bug 1202744 Opened 5 years ago Closed 5 years ago

Overlapping software home buttons

Categories

(B2GDroid Graveyard :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jsavory, Assigned: fabrice)

Details

Attachments

(1 file)

Overlapping software home buttons - it can be confusing to know which one you're going to click on. Only one version of the home button should be displayed to the user.
The solution used here is to not use gaia's software home button at all, but to use Android's.

To achieve that, this patch:
- forces the physical_home_button CSS property on b2gdroid to prevent gaia from showing its own SHB.
- uses the ACTION_MAIN intent action as an observable side effect of hitting the home button, since we don't get key event from the navigation bar.
- relays this action to gaia by simulating a keypress on "Home".

We also stop using immersive mode since it doesn't make sense anymore.
Assignee: nobody → fabrice
Attachment #8660955 - Flags: review?(snorp)
Attachment #8660955 - Flags: review?(snorp) → review+
You need to log in before you can comment on or make changes to this bug.