Skip to content

Inconsistent results #53

Description

@bobsmits

With the latest patch and the fix for notched devices i get mixed results. I want the available screen height with a translucent statusbar. So that should be the actual screen height minus the softmenu bar.

Samsung s10
Has a soft menu.
ExtraDimensions.getSoftMenuBarHeight( ) -> 48 -> seems ok
ExtraDimensions.isSoftMenuBarEnabled() -> false -> not ok
ExtraDimensions.getRealWindowHeight() -> gives the device height - soft menu bar height

Samsung J5
Has no soft menu
ExtraDimensions.getSoftMenuBarHeight( ) -> 0 -> seems ok
ExtraDimensions.isSoftMenuBarEnabled() -> true -> not ok
ExtraDimensions.getRealWindowHeight() -> gives the device height

Simulator Nexus 5x
Has a soft menu
ExtraDimensions.getSoftMenuBarHeight( ) -> 0 -> not ok
ExtraDimensions.isSoftMenuBarEnabled() -> true -> seems ok
ExtraDimensions.getRealWindowHeight() -> gives the device height

I'm not a native dev otherwise i would dive in and try to fix it myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions