Skip to content

Commit

Permalink
fix(android): support right-to-left text direction
Browse files Browse the repository at this point in the history
  • Loading branch information
timschneeb committed Aug 9, 2024
1 parent 7ab20f2 commit b400807
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion GalaxyBudsClient/Interface/MainView.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ public MainView()
InitializeComponent();
Instance = this;

Loc.LanguageUpdated += OnLanguageUpdated;

var insetsManager = TopLevel.GetTopLevel(this)?.InsetsManager;
if (insetsManager != null)
{
Expand All @@ -79,12 +81,17 @@ public MainView()
NavigationService.Instance.Frame = FrameView;

InitializeNavigationPages();

BreadcrumbBar.ItemClicked += OnBreadcrumbBarItemClicked;
FrameView.Navigated += OnFrameViewNavigated;
NavView.ItemInvoked += OnNavigationViewItemInvoked;
NavView.BackRequested += OnNavigationViewBackRequested;
}

private void OnLanguageUpdated()
{
FlowDirection = Loc.ResolveFlowDirection();
}

public T? ResolveViewModelByType<T>() where T : PageViewModelBase
{
Expand Down

0 comments on commit b400807

Please sign in to comment.