Bug 1480083 - After exiting PIP the restarted activity should have device's orientation; r=sdaswani

Differential Revision: https://phabricator.services.mozilla.com/D4939

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Petru Lingurar 2018-09-04 16:14:30 +00:00
parent 8624d8b8b2
commit 817c2cd883

View File

@ -1084,6 +1084,10 @@ public class BrowserApp extends GeckoApp
// that the user had before entering in Picture-in-picture mode.
if (userReturnedToFullApp) {
ActivityUtils.setFullScreen(this, true);
} else {
// User closed the PIP mode.
// Make sure that after restarting, the activity will match device's orientation.
setRequestedOrientationForCurrentActivity(ActivityInfo.SCREEN_ORIENTATION_FULL_SENSOR);
}
}
}