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

Commit 5fd8041d authored by Matthew Ng's avatar Matthew Ng
Browse files

Correctly update rtl state in navbar once language changes

NavigationBarView failed to update the rtl state that is passed to the
fragment, navbar helper and quick step controller when changing from a
ltr to rtl language because layout direction in view has not been
resolved yet. Fixed by resolving layout direction in reorient if needed.

Change-Id: I28b5dd8b678723020e549a04735ca1932b825dac
Fixes: 73337601
Test: change language and try to quick scrub
parent 461ce2aa
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -881,6 +881,11 @@ public class NavigationBarView extends FrameLayout implements PluginListener<Nav
            Log.d(TAG, "reorient(): rot=" + mCurrentRotation);
        }

        // Resolve layout direction if not resolved since components changing layout direction such
        // as changing languages will recreate this view and the direction will be resolved later
        if (!isLayoutDirectionResolved()) {
            resolveLayoutDirection();
        }
        updateTaskSwitchHelper();
        setNavigationIconHints(mNavigationIconHints, true);