The Private mode theme is updated.
The Private mode theme is not udpated, still showing the light theme from normal mode.
@mcarare I've also found these steps:
Add private browsing shortcut.
Open the shortcut and perform a search.
Switch to normal browsing.
Result: it will keep the Private browsing theme on normal browsing.
@mcarare I've also found these steps:
Add private browsing shortcut.
Open the shortcut and perform a search.
Switch to normal browsing.
Result: it will keep the Private browsing theme on normal browsing.
@psymoon At a first glance, it looks like this change: #8292 introduced this behaviour. Can you take a look at this? TY!
@psymoon I think the problems lies in the registering of the browsingModeListener:
When you open Fenix from the private browsing shortcut you open a new activity that registers the observer:
org.mozilla.fenix.debug E/mihai-c: registred by activity = org.mozilla.fenix.HomeActivity@f2e0ea9
when you hit the back button, the current activity is stopped, and a new one is started. The problem is that the onStart of the new activity is called before the onStop of the old one, notice the activity id:
org.mozilla.fenix.debug E/mihai-c: registred by activity =
org.mozilla.fenix.HomeActivity@1a1268f
org.mozilla.fenix.debug E/mihai-c: unregistred by activity =
org.mozilla.fenix.HomeActivity@f2e0ea9
that leaves us with no registered browsingModeListener
This looks like a problem with the theming not working properly between PBM and Normal mode, see #8498
@sv-ohorvath @mcarare The fix was merged yesterday, can you please verify this?
This and #8498 are verified as fixed on Nightly 2/24, checked from different entry-points.