Skip to content

Commit

Permalink
Fix: Bixby not visible when hotkeys not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
nift4 committed Feb 3, 2024
1 parent cbc874f commit 610e9a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions GalaxyBudsClient/Interface/Pages/AdvancedPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
</Border>
</Grid>
</Border>
<Border Grid.Row="4" x:Name="Hotkeys" Classes="RoundedBorderListItem BottomSpacer10">
<Border Grid.Row="4" x:Name="HotkeysBixby" Classes="RoundedBorderListItem BottomSpacer10">
<Grid ClipToBounds="True">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
Expand All @@ -65,7 +65,7 @@

<items:DetailListItem Grid.Row="0" Text="{DynamicResource adv_hotkey}"
Description="{DynamicResource adv_hotkey_desc}"
PointerPressed="Hotkeys_OnPointerPressed"/>
PointerPressed="Hotkeys_OnPointerPressed" x:Name="Hotkeys" />
<Separator Grid.Row="1" x:Name="BixbyRemapS" Margin="20,0,20,0" Background="{DynamicResource BorderSeparatorBrush}" />
<Border Grid.Row="2" x:Name="BixbyRemap">
<items:DetailListItem Text="{DynamicResource adv_bixby_remap}"
Expand Down
7 changes: 5 additions & 2 deletions GalaxyBudsClient/Interface/Pages/AdvancedPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,12 @@ private void InstanceOnExtendedStatusUpdate(object? sender, ExtendedStatusUpdate

public override void OnPageShown()
{
this.FindControl<Border>("Hotkeys").IsVisible = PlatformUtils.SupportsHotkeys;
this.FindControl<Border>("HotkeysBixby").IsVisible =
PlatformUtils.SupportsHotkeys || BluetoothImpl.Instance.DeviceSpec.Supports(IDeviceSpec.Feature.BixbyWakeup);
this.FindControl<Separator>("BixbyRemapS").IsVisible =
PlatformUtils.SupportsHotkeys && BluetoothImpl.Instance.DeviceSpec.Supports(IDeviceSpec.Feature.BixbyWakeup);
this.FindControl<DetailListItem>("Hotkeys").IsVisible = PlatformUtils.SupportsHotkeys;
this.FindControl<Border>("BixbyRemap").IsVisible = BluetoothImpl.Instance.DeviceSpec.Supports(IDeviceSpec.Feature.BixbyWakeup);
this.FindControl<Separator>("BixbyRemapS").IsVisible = BluetoothImpl.Instance.DeviceSpec.Supports(IDeviceSpec.Feature.BixbyWakeup);
this.FindControl<Separator>("SidetoneS").IsVisible = BluetoothImpl.Instance.DeviceSpec.Supports(IDeviceSpec.Feature.AmbientSidetone);
this.FindControl<Separator>("PassthroughS").IsVisible = BluetoothImpl.Instance.DeviceSpec.Supports(IDeviceSpec.Feature.AmbientPassthrough);
_sidetone.Parent!.IsVisible = BluetoothImpl.Instance.DeviceSpec.Supports(IDeviceSpec.Feature.AmbientSidetone);
Expand Down

0 comments on commit 610e9a5

Please sign in to comment.