Project

General

Profile

Bug #56

The number of options menu action buttons are not recalculated on rotate.

Added by Soren Stoutner over 5 years ago. Updated about 1 year ago.

Status:
In Progress
Priority:
3.x
Start date:
08/29/2016
Due date:
% Done:

0%

Estimated time:

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

History

#1

Updated by Soren Stoutner over 4 years ago

  • Status changed from New to In Progress
#2

Updated by Soren Stoutner over 4 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.

#3

Updated by Soren Stoutner about 4 years ago

  • Priority changed from 3 to 2
#4

Updated by Soren Stoutner about 3 years ago

  • Priority changed from 2 to 3.x
#5

Updated by Soren Stoutner about 1 year ago

https://redmine.stoutner.com/issues/632 is another manifestation of the same problem.

#6

Updated by Soren Stoutner about 1 year 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.

Also available in: Atom PDF