Commit cdaac9f3 authored by Mugurell's avatar Mugurell Committed by Richard Pospesel
Browse files

Bug 1816059 - Show the notification for entering fullscreen as a Toast

parent 5c26f235
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@ import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.accessibility.AccessibilityManager
import android.widget.Toast
import androidx.annotation.CallSuper
import androidx.annotation.VisibleForTesting
import androidx.appcompat.app.AlertDialog
@@ -1381,12 +1382,8 @@ abstract class BaseBrowserFragment :
        if (inFullScreen) {
            // Close find in page bar if opened
            findInPageIntegration.onBackPressed()
            FenixSnackbar.make(
                view = binding.dynamicSnackbarContainer,
                duration = Snackbar.LENGTH_SHORT,
                isDisplayedWithBrowserToolbar = false
            )
                .setText(getString(R.string.full_screen_notification))
            Toast
                .makeText(requireContext(), R.string.full_screen_notification, Toast.LENGTH_SHORT)
                .show()
            activity?.enterToImmersiveMode()
            browserToolbarView.collapse()