diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index 1354a7ab37..8e1a09c6c9 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java @@ -600,9 +600,11 @@ public class Launcher extends StatefulActivity implements Launche private void initDeviceProfile(InvariantDeviceProfile idp) { // Load configuration-specific DeviceProfile - mDeviceProfile = isInMultiWindowMode() - ? mDeviceProfile.getMultiWindowProfile(this, getMultiWindowDisplaySize()) - : idp.getDeviceProfile(this); + mDeviceProfile = idp.getDeviceProfile(this); + if (isInMultiWindowMode()) { + mDeviceProfile = mDeviceProfile.getMultiWindowProfile( + this, getMultiWindowDisplaySize()); + } onDeviceProfileInitiated(); mModelWriter = mModel.getWriter(getDeviceProfile().isVerticalBarLayout(), true, this);