You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Rotating the screen while in-note search is active closes the search bar and discards the search query #452
I can reproduce this on an emulator with current master. MainActivity declares only orientation in configChanges, so rotating recreates the activity, and isSearchActive and the query aren't saved, so the search bar comes back closed.
I have a small fix ready: save both in onSaveInstanceState, and after recreation reopen the search with the query once the pager has its fragments, so the matches are highlighted again. I tested it on the emulator by searching, rotating to landscape, and checking that the bar, the query and the highlights stay. If you label this help wanted, I'll open the PR with before and after screenshots.
Activity
ibrahim-iqbal commentedon Nov 28, 2026
I can reproduce this on an emulator with current master. MainActivity declares only
orientationin configChanges, so rotating recreates the activity, andisSearchActiveand the query aren't saved, so the search bar comes back closed.I have a small fix ready: save both in
onSaveInstanceState, and after recreation reopen the search with the query once the pager has its fragments, so the matches are highlighted again. I tested it on the emulator by searching, rotating to landscape, and checking that the bar, the query and the highlights stay. If you label this help wanted, I'll open the PR with before and after screenshots.