diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2017-08-02 03:37:39 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2017-09-08 14:06:30 -0700 |
commit | 7ce471bdf6d77c9d5778810d9ea033313c579067 (patch) | |
tree | 26567ed32b78611f33f9823f7514fbb1f8de821c /src/com/android/launcher3/FocusHelper.java | |
parent | 17e780794bd10e08405350af8fa1f2fffff79829 (diff) | |
download | android_packages_apps_Trebuchet-7ce471bdf6d77c9d5778810d9ea033313c579067.tar.gz android_packages_apps_Trebuchet-7ce471bdf6d77c9d5778810d9ea033313c579067.tar.bz2 android_packages_apps_Trebuchet-7ce471bdf6d77c9d5778810d9ea033313c579067.zip |
Removing support for CustomContent screen
The supported way to customize Launcher and add a "-1 page" is by
using LauncherOverlays. Custom content screen is no longer supported.
Change-Id: I3f8a2734c287d1a69ae0c038ec1de1d45fa1b464
Diffstat (limited to 'src/com/android/launcher3/FocusHelper.java')
-rw-r--r-- | src/com/android/launcher3/FocusHelper.java | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/com/android/launcher3/FocusHelper.java b/src/com/android/launcher3/FocusHelper.java index fe7acda17..1f18ea1ac 100644 --- a/src/com/android/launcher3/FocusHelper.java +++ b/src/com/android/launcher3/FocusHelper.java @@ -288,25 +288,11 @@ public class FocusHelper { case FocusLogic.PREVIOUS_PAGE_RIGHT_COLUMN: // Go to the previous page but keep the focus on the same hotseat icon. workspace.snapToPage(pageIndex - 1); - // If the page we are going to is fullscreen, have it take the focus from hotseat. - CellLayout prevPage = (CellLayout) workspace.getPageAt(pageIndex - 1); - boolean isPrevPageFullscreen = ((CellLayout.LayoutParams) prevPage - .getShortcutsAndWidgets().getChildAt(0).getLayoutParams()).isFullscreen; - if (isPrevPageFullscreen) { - workspace.getPageAt(pageIndex - 1).requestFocus(); - } break; case FocusLogic.NEXT_PAGE_LEFT_COLUMN: case FocusLogic.NEXT_PAGE_RIGHT_COLUMN: // Go to the next page but keep the focus on the same hotseat icon. workspace.snapToPage(pageIndex + 1); - // If the page we are going to is fullscreen, have it take the focus from hotseat. - CellLayout nextPage = (CellLayout) workspace.getPageAt(pageIndex + 1); - boolean isNextPageFullscreen = ((CellLayout.LayoutParams) nextPage - .getShortcutsAndWidgets().getChildAt(0).getLayoutParams()).isFullscreen; - if (isNextPageFullscreen) { - workspace.getPageAt(pageIndex + 1).requestFocus(); - } break; } if (parent == iconParent && newIconIndex >= iconParent.getChildCount()) { |