Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Component used:
androidx.appcompat:appcompat
Version used:
1.1.0
&1.6.0
Devices/Android versions reproduced on: Vivo Z1 Pro (1918) / Android 11
We have recently performed a series of performance optimizations on one of our activities, which involved offloading non-UI operations to worker threads and utilizing
Handler#post
from these threads to postView
-related operations on the Main thread.After these optimizations, we noticed that the initialization process of the
Toolbar
reaches a certain point in the code, but themMenuInvalidator
does not execute as expected:Consequently, the
mMenuPrepared
flag remainsfalse
. This causes a problem when the Back button is clicked, as there is a check within the listener that prevents any effect from occurring:As a temporary workaround, we have overridden the listener using
setNavigationOnClickListener()
, which seems to address the issue. However, we are still interested in understanding the root cause and finding a proper solution within our application code.Any assistance or guidance you can provide to resolve this issue would be greatly appreciated.