Skip to content

Adding a new category defaults Categories settings to last page #532

@cinadia

Description

@cinadia

Describe the bug
If a user adds a new Category in the "Categories and Phrases" section of the Settings, each time the user navigates back to the "Categories and Phrases" section, the page will default to the page where the Category was originally added*. This behaviour can only be undone by killing and restarting the app (i.e. removing the newly added Categories does not reverse the behaviour).

*(When Categories are hidden and the user adds a new Category, the new Category will be placed before all the hidden categories. In this case, each time the user navigates back to the "Categories and Phrases" section, the page will default back to the page where the new Category was originally placed.)

To Reproduce

  1. Navigate to Settings > Categories and Phrases
  2. Add a new Category
  3. Exit Settings
  4. Navigate back to Settings > Categories and Phrases
  5. The page will be the last page instead of the first (observe the "Page x of x" at the bottom)
  6. Kill and restart the app to remove the behaviour

Expected behavior
The Categories and Phrases page in Settings should only scroll to [the page that the new Category was added to] immediately after the new Category is created. When a user navigates away from the "Categories and Phrases" page and then navigates back after adding a new Category, they should land on page 1.

Actual Behavior
The Categories and Phrases page jumps to the page that the new Category was added to every single time.

Smartphone (please complete the followng information):

  • Device: Pixel 4
  • OS: Android 12

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions