Loading quickstep/src/com/android/launcher3/uioverrides/UiFactory.java +4 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ package com.android.launcher3.uioverrides; import static com.android.launcher3.AbstractFloatingView.TYPE_ALL; import static com.android.launcher3.AbstractFloatingView.TYPE_HIDE_BACK_BUTTON; import static com.android.launcher3.LauncherState.ALL_APPS; import static com.android.launcher3.LauncherState.NORMAL; import static com.android.launcher3.LauncherState.OVERVIEW; Loading Loading @@ -74,7 +76,8 @@ public class UiFactory { && launcher.hasWindowFocus(); if (shouldBackButtonBeHidden) { // Show the back button if there is a floating view visible. shouldBackButtonBeHidden = AbstractFloatingView.getTopOpenView(launcher) == null; shouldBackButtonBeHidden = AbstractFloatingView.getTopOpenViewWithType(launcher, TYPE_ALL & ~TYPE_HIDE_BACK_BUTTON) == null; } OverviewInteractionState.getInstance(launcher) .setBackButtonVisible(!shouldBackButtonBeHidden); Loading src/com/android/launcher3/AbstractFloatingView.java +9 −1 Original line number Diff line number Diff line Loading @@ -70,6 +70,9 @@ public abstract class AbstractFloatingView extends LinearLayout implements Touch public static final int TYPE_REBIND_SAFE = TYPE_WIDGETS_FULL_SHEET | TYPE_QUICKSTEP_PREVIEW | TYPE_ON_BOARD_POPUP; // Usually we show the back button when a floating view is open. Instead, hide for these types. public static final int TYPE_HIDE_BACK_BUTTON = TYPE_ON_BOARD_POPUP; protected boolean mIsOpen; public AbstractFloatingView(Context context, AttributeSet attrs) { Loading Loading @@ -170,6 +173,11 @@ public abstract class AbstractFloatingView extends LinearLayout implements Touch } public static AbstractFloatingView getTopOpenView(BaseDraggingActivity activity) { return getOpenView(activity, TYPE_ALL); return getTopOpenViewWithType(activity, TYPE_ALL); } public static AbstractFloatingView getTopOpenViewWithType(BaseDraggingActivity activity, @FloatingViewType int type) { return getOpenView(activity, type); } } Loading
quickstep/src/com/android/launcher3/uioverrides/UiFactory.java +4 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ package com.android.launcher3.uioverrides; import static com.android.launcher3.AbstractFloatingView.TYPE_ALL; import static com.android.launcher3.AbstractFloatingView.TYPE_HIDE_BACK_BUTTON; import static com.android.launcher3.LauncherState.ALL_APPS; import static com.android.launcher3.LauncherState.NORMAL; import static com.android.launcher3.LauncherState.OVERVIEW; Loading Loading @@ -74,7 +76,8 @@ public class UiFactory { && launcher.hasWindowFocus(); if (shouldBackButtonBeHidden) { // Show the back button if there is a floating view visible. shouldBackButtonBeHidden = AbstractFloatingView.getTopOpenView(launcher) == null; shouldBackButtonBeHidden = AbstractFloatingView.getTopOpenViewWithType(launcher, TYPE_ALL & ~TYPE_HIDE_BACK_BUTTON) == null; } OverviewInteractionState.getInstance(launcher) .setBackButtonVisible(!shouldBackButtonBeHidden); Loading
src/com/android/launcher3/AbstractFloatingView.java +9 −1 Original line number Diff line number Diff line Loading @@ -70,6 +70,9 @@ public abstract class AbstractFloatingView extends LinearLayout implements Touch public static final int TYPE_REBIND_SAFE = TYPE_WIDGETS_FULL_SHEET | TYPE_QUICKSTEP_PREVIEW | TYPE_ON_BOARD_POPUP; // Usually we show the back button when a floating view is open. Instead, hide for these types. public static final int TYPE_HIDE_BACK_BUTTON = TYPE_ON_BOARD_POPUP; protected boolean mIsOpen; public AbstractFloatingView(Context context, AttributeSet attrs) { Loading Loading @@ -170,6 +173,11 @@ public abstract class AbstractFloatingView extends LinearLayout implements Touch } public static AbstractFloatingView getTopOpenView(BaseDraggingActivity activity) { return getOpenView(activity, TYPE_ALL); return getTopOpenViewWithType(activity, TYPE_ALL); } public static AbstractFloatingView getTopOpenViewWithType(BaseDraggingActivity activity, @FloatingViewType int type) { return getOpenView(activity, type); } }