The number of options menu action buttons are not recalculated on rotate.
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 almost 2 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.