From 1647e07481353e202b76d1069b7ce58fb0fcb4bd Mon Sep 17 00:00:00 2001 From: ekager Date: Tue, 3 Dec 2019 15:47:17 +0000 Subject: [PATCH] For #5771 - Don't force landscape mode on fullscreen --- .../java/org/mozilla/fenix/browser/BaseBrowserFragment.kt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/src/main/java/org/mozilla/fenix/browser/BaseBrowserFragment.kt b/app/src/main/java/org/mozilla/fenix/browser/BaseBrowserFragment.kt index a5f7afab9..eae427c55 100644 --- a/app/src/main/java/org/mozilla/fenix/browser/BaseBrowserFragment.kt +++ b/app/src/main/java/org/mozilla/fenix/browser/BaseBrowserFragment.kt @@ -6,7 +6,6 @@ package org.mozilla.fenix.browser import android.content.Context import android.content.Intent -import android.content.pm.ActivityInfo import android.graphics.Color import android.graphics.drawable.ColorDrawable import android.os.Bundle @@ -365,12 +364,9 @@ abstract class BaseBrowserFragment : Fragment(), UserInteractionHandler, Session FenixSnackbar.make(view.rootView, Snackbar.LENGTH_SHORT) .setText(getString(R.string.full_screen_notification)) .show() - activity?.requestedOrientation = - ActivityInfo.SCREEN_ORIENTATION_USER_LANDSCAPE activity?.enterToImmersiveMode() browserToolbarView.view.visibility = View.GONE } else { - activity?.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_USER activity?.exitImmersiveModeIfNeeded() (activity as? HomeActivity)?.let { activity -> activity.themeManager.applyStatusBarTheme(activity)