Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4bfc0ee7 authored by Alex Chau's avatar Alex Chau
Browse files

Fix return condition in getWorkspacePageTranslationProvider

- When EDIT_MODE was introduced, it added a wrong condition to make it always return DEFAULT_PAGE_TRANSLATION_PROVIDER

Bug: 294228521
Test: manual
Change-Id: If970949c8ab55bc67f98f987a7654ec2db89cdfb
(cherry picked from commit c325c686)
parent 343b8960
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;
        }