No, this is not my case.
I don't use setOnTopSideMenu(false)
and I alredy call setAllowEnableLayoutOnPaint(true).
Base on your reply I experimented with setAllowEnableLayoutOnPaint(true) and I found out, that when I break the code on this istruction (in debugger) and then let it continue it works as expected.
But when it runs normaly it does not work (the button still disappeares).
It seems to be some kind of race condition, but I'm not able to resolve it ....
Dátum: sobota 24. októbra 2020, čas: 7:36:36 UTC+2, odosielateľ: Shai Almog