mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-11 13:11:01 +00:00
For #5254: Fix transition to private browsing mode after sharing a page
This commit is contained in:
parent
8a371191b7
commit
3787dd7b1f
@ -165,7 +165,15 @@ class BrowserFragment : BaseBrowserFragment(), BackHandler {
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
getSessionById()?.let { quickActionSheetSessionObserver?.updateBookmarkState(it) }
|
||||
getSessionById()?.let {
|
||||
/**
|
||||
* The session mode may be changed if the user is originally in Normal Mode and then
|
||||
* opens a 3rd party link in Private Browsing Mode. Hence, we update the theme here.
|
||||
* This fixes issue #5254.
|
||||
*/
|
||||
(activity as HomeActivity).updateThemeForSession(it)
|
||||
quickActionSheetSessionObserver?.updateBookmarkState(it)
|
||||
}
|
||||
requireComponents.core.tabCollectionStorage.register(collectionStorageObserver, this)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user