Bug #56
openThe number of options menu action buttons are not recalculated on rotate.
0%
Description
This should be handled by calling `invalidateOptionsMenu()` in `onConfigurationChanged()`, but it doesn't work due to this bug: https://code.google.com/p/android/issues/detail?id=20493#c8
Updated by Soren Stoutner over 7 years ago
- Status changed from New to In Progress
Updated by Soren Stoutner over 7 years ago
- Priority changed from 3.x to 3
The priority is set to high, but there is probably not much that can be done until Google fixes their bug.
Updated by Soren Stoutner about 4 years ago
https://redmine.stoutner.com/issues/632 is another manifestation of the same problem.
Updated by Soren Stoutner about 4 years ago
For those who might not know the root of the problem, Android typically only calculates the size of the screen for some layout purposes and the number of icons that can fit on the app bar during `onCreate()`. Android wants the app to completely shut down and restart the app every time the screen is rotated. However, this has a lot of negative effects on the app, including deleting anything that a user has typed into a web field. Hence, Privacy Browser does not restart the app on rotate.
For most things this works well, but the measurement of the screen width that is used to decide how many icons can be displayed in the app bar and how far to open the bookmarks drawer is not recalculated. Until Google creates a way to manually force this recalculation, there isn't likely to be much I can do about it.
Users who want to manually restart the app and force a recalculation can do so by toggling the Day/Night theme.