diff --git a/quickstep/recents_ui_overrides/src/com/android/launcher3/hybridhotseat/HotseatEduDialog.java b/quickstep/recents_ui_overrides/src/com/android/launcher3/hybridhotseat/HotseatEduDialog.java index 12d537cb28..99cb3b351b 100644 --- a/quickstep/recents_ui_overrides/src/com/android/launcher3/hybridhotseat/HotseatEduDialog.java +++ b/quickstep/recents_ui_overrides/src/com/android/launcher3/hybridhotseat/HotseatEduDialog.java @@ -145,11 +145,23 @@ public class HotseatEduDialog extends AbstractSlideInView implements Insettable int rightInset = insets.right - mInsets.right; int bottomInset = insets.bottom - mInsets.bottom; mInsets.set(insets); - setPadding(leftInset, getPaddingTop(), rightInset, 0); - mHotseatWrapper.setPadding(mHotseatWrapper.getPaddingLeft(), getPaddingTop(), - mHotseatWrapper.getPaddingRight(), bottomInset); - mHotseatWrapper.getLayoutParams().height = - mLauncher.getDeviceProfile().hotseatBarSizePx + insets.bottom; + if (mLauncher.getOrientation() == Configuration.ORIENTATION_PORTRAIT) { + setPadding(leftInset, getPaddingTop(), rightInset, 0); + mHotseatWrapper.setPadding(mHotseatWrapper.getPaddingLeft(), getPaddingTop(), + mHotseatWrapper.getPaddingRight(), bottomInset); + mHotseatWrapper.getLayoutParams().height = + mLauncher.getDeviceProfile().hotseatBarSizePx + insets.bottom; + + } else { + setPadding(0, getPaddingTop(), 0, 0); + mHotseatWrapper.setPadding(mHotseatWrapper.getPaddingLeft(), getPaddingTop(), + mHotseatWrapper.getPaddingRight(), + (int) getResources().getDimension(R.dimen.bottom_sheet_edu_padding)); + ((TextView) findViewById(R.id.hotseat_edu_heading)).setText( + R.string.hotseat_edu_title_migrate_landscape); + ((TextView) findViewById(R.id.hotseat_edu_content)).setText( + R.string.hotseat_edu_message_migrate_landscape); + } } private void logUserAction(boolean migrated, int pageIndex) { diff --git a/quickstep/res/values/strings.xml b/quickstep/res/values/strings.xml index 35143c55ad..a27c127317 100644 --- a/quickstep/res/values/strings.xml +++ b/quickstep/res/values/strings.xml @@ -65,8 +65,10 @@ Get app suggestions on the bottom row of your Home screen + Get app suggestions on favorites row of your Home screen Easily access your most-used apps right on the Home screen. Suggestions will change based on your routines. Apps on the bottom row will move up to your Home screen. + Easily access your most-used apps right on the Home screen. Suggestions will change based on your routines. Apps in favorites row will move to your Home screen. Easily access your most-used apps, right on the Home screen. Suggestions will change based on your routines. Apps on the bottom row will move to a new folder.