Merge "Fix bug where non-center page is visibile in HINT_STATE." into ub-launcher3-rvc-qpr-dev

This commit is contained in:
TreeHugger Robot
2020-07-09 00:52:54 +00:00
committed by Android (Google) Code Review
+2 -1
View File
@@ -250,7 +250,8 @@ public abstract class LauncherState implements BaseState<LauncherState> {
}
public PageAlphaProvider getWorkspacePageAlphaProvider(Launcher launcher) {
if (this != NORMAL || !launcher.getDeviceProfile().shouldFadeAdjacentWorkspaceScreens()) {
if ((this != NORMAL && this != HINT_STATE)
|| !launcher.getDeviceProfile().shouldFadeAdjacentWorkspaceScreens()) {
return DEFAULT_ALPHA_PROVIDER;
}
final int centerPage = launcher.getWorkspace().getNextPage();