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

This commit is contained in:
Treehugger Robot authored and Android (Google) Code Review committed 2023-08-17 05:42:09 +00:00
commit d756203fa7
1 file changed
+1 -2
+1 -2
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;
}