mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 12:20:56 +00:00
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:
parent
8624d8b8b2
commit
817c2cd883
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user