Merge "Fix return condition in getWorkspacePageTranslationProvider" into udc-dev

This commit is contained in:
Treehugger Robot
2023-08-17 05:42:09 +00:00
committed by Android (Google) Code Review

View File

@@ -331,8 +331,7 @@ public abstract class LauncherState implements BaseState<LauncherState> {
* Gets the translation provider for workspace pages.
*/
public PageTranslationProvider getWorkspacePageTranslationProvider(Launcher launcher) {
if (this != SPRING_LOADED
|| this != EDIT_MODE
if (!(this == SPRING_LOADED || this == EDIT_MODE)
|| !launcher.getDeviceProfile().isTwoPanels) {
return DEFAULT_PAGE_TRANSLATION_PROVIDER;
}