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

Commit 99c53ace authored by Winson Chung's avatar Winson Chung
Browse files

Skip recreating the nav bar when locale changes

- It's already handled in the nav bar config change logic

Bug: 185083593
Test: Change locale
Change-Id: I9936202bec57791fcc6c1255737cc40555ce096d
parent 5eef4114
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -123,8 +123,7 @@ public class NavigationBarController implements Callbacks,

    // Tracks config changes that will actually recreate the nav bar
    private final InterestingConfigChanges mConfigChanges = new InterestingConfigChanges(
            ActivityInfo.CONFIG_FONT_SCALE | ActivityInfo.CONFIG_LOCALE
                    | ActivityInfo.CONFIG_SCREEN_LAYOUT
            ActivityInfo.CONFIG_FONT_SCALE | ActivityInfo.CONFIG_SCREEN_LAYOUT
                    | ActivityInfo.CONFIG_UI_MODE);

    @Inject