Skip to content

Fix bug of search history randomly not saved#13173

Closed
ghost wants to merge 1 commit into
devfrom
unknown repository
Closed

Fix bug of search history randomly not saved#13173
ghost wants to merge 1 commit into
devfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Feb 1, 2026

What is it?

  • Bugfix (user facing)

Description of the changes in your PR

Fix bug of search history randomly not saved

Don't create disposable from operation of storing search to history because we certainly want this to complete. But create disposable from subscriber functions which handles showing snackbar notifiying user about not being to save search

Disposable was created in search method and then alsmost immediately was called startLoading which disposed "all" disposables including our operation of search storing (if it was unlucky enough to not finish before this moment)

Fixes the following issue(s)

APK testing

The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR. You can find more info and a video demonstration on this wiki page.

Due diligence

Don't create disposable from operation of storing search to history
because we certainly want this to complete. But create disposable
from subscriber functions which handles showing snackbar notifiying
user about not being to save search

Disposable was created in `search` method and then alsmost immediately
was called `startLoading` which disposed "all" disposables including
our operation of search storing (if it was unlucky enough to not finish
before this moment)
@github-actions github-actions Bot added the size/medium PRs with less than 250 changed lines label Feb 1, 2026
@ghost
Copy link
Copy Markdown
Author

ghost commented Feb 1, 2026

@ElenaXX you are welcome to test after CI completes ;) (If you want)

@ShareASmile ShareASmile added bug Issue is related to a bug search Anything related to the search function labels Feb 2, 2026
Repository owner closed this by deleting the head repository Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Issue is related to a bug search Anything related to the search function size/medium PRs with less than 250 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

At random searches are not saved in list

2 participants