2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-05 21:20:45 +00:00

For #27852 - Set BrowsingMode to Normal when selecting a wallpaper

This commit is contained in:
Noah Bond 2022-11-15 14:19:49 -08:00 committed by mergify[bot]
parent e99d9a5ccc
commit 79521d692b

View File

@ -23,6 +23,7 @@ import org.mozilla.fenix.FeatureFlags
import org.mozilla.fenix.GleanMetrics.Wallpapers
import org.mozilla.fenix.HomeActivity
import org.mozilla.fenix.R
import org.mozilla.fenix.browser.browsingmode.BrowsingMode
import org.mozilla.fenix.components.FenixSnackbar
import org.mozilla.fenix.ext.requireComponents
import org.mozilla.fenix.ext.showToolbar
@ -112,6 +113,7 @@ class WallpaperSettingsFragment : Fragment() {
)
.setText(view.context.getString(R.string.wallpaper_updated_snackbar_message))
.setAction(requireContext().getString(R.string.wallpaper_updated_snackbar_action)) {
(activity as HomeActivity).browsingModeManager.mode = BrowsingMode.Normal
findNavController().navigate(R.id.homeFragment)
}
.show()