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

Verified Commit eaa96629 authored by Saalim Quadri's avatar Saalim Quadri
Browse files

bliss: Make translations work better

parent a8a79761
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -150,7 +150,7 @@ public class LauncherTaskbarUIController extends TaskbarUIController {
                        mTaskbarInAppDisplayProgressMultiProp.get(i).getValue();
            }
            // Ensure nav buttons react to our latest state if necessary.
            mControllers.navbarButtonsViewController.updateNavButtonTranslations();
            mControllers.navbarButtonsViewController.updateNavButtonTranslations(true);
        }
    }

+2 −2
Original line number Diff line number Diff line
@@ -963,7 +963,7 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
            handleSetupUi();
        }
        updateButtonLayoutSpacing();
        updateNavButtonTranslations(true);
        updateNavButtonTranslations();
    }

    private void handleSetupUi() {
@@ -1126,7 +1126,7 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
                public void onGlobalLayout() {
                    // Remove the listener to avoid multiple calls
                    mNavButtonContainer.getViewTreeObserver().removeOnGlobalLayoutListener(this);
                    updateNavButtonTranslations();
                    updateNavButtonTranslations(true);
                }
            });
        }