Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5fc8f7d0 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Initialize last-orientation to ensure we don't skip loading config." into oc-dev

parents c1406978 8068ec2e
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -239,7 +239,11 @@ public class PipManager implements BasePipManager {
            }
        }

        loadConfigurationsAndApply(mContext.getResources().getConfiguration());
        // Initialize the last orientation and apply the current configuration
        Configuration initialConfig = mContext.getResources().getConfiguration();
        mLastOrientation = initialConfig.orientation;
        loadConfigurationsAndApply(initialConfig);

        mMediaSessionManager =
                (MediaSessionManager) mContext.getSystemService(Context.MEDIA_SESSION_SERVICE);