Skip to content

DropdownMenu and CascadeDropdownMenu disappear on uiMode change #1676

@nicolarevelant

Description

@nicolarevelant

Problem: when I perform this sequence of events the DropdownMenu/CascadeDropdownMenu disappears:

  1. Touch the filter icon at the top right
  2. Switch between light and dark mode twice

or:

  1. Touch the sort icon at the top right
  2. Switch between light and dark mode twice

or:

  1. Touch the 3-dot icon at the top right
  2. Switch between light and dark mode twice

or:

  1. Open a community page
  2. Touch the sort icon at the top right
  3. Switch between light and dark mode twice

or:

  1. Open a community page
  2. Touch the 3-dot icon at the top right
  3. Switch between light and dark mode twice

Possible solution:

use rememberSaveable instead of remember in the following occurrencies:

  • app/src/main/java/com/jerboa/ui/components/home/Home.kt:69, 70, 71
  • app/src/main/java/com/jerboa/ui/components/community/Community.kt:180, 181

Screenshots:

Version:

0.0.66 - not fixed in 0.0.75

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions