diff --git a/src/Mobile/Pages/ShowDetailPage.xaml b/src/Mobile/Pages/ShowDetailPage.xaml index bca51dc..39b0ba5 100644 --- a/src/Mobile/Pages/ShowDetailPage.xaml +++ b/src/Mobile/Pages/ShowDetailPage.xaml @@ -39,6 +39,7 @@ HeightRequest="38" Source="player_play.png" VerticalOptions="Center" + SemanticProperties.Description="{x:Static res:AppResource.Semantic_Description_Tap_Play_Episode}" Command="{Binding Source={RelativeSource AncestorType={x:Type viewmodels:ShowDetailViewModel}}, Path=PlayEpisodeCommand}" CommandParameter="{Binding}" WidthRequest="38"> @@ -65,6 +66,7 @@ VerticalOptions="Center" Source="clockpink.png" HeightRequest="28" + SemanticProperties.Description="{x:Static res:AppResource.Semantic_Description_Tap_Listen_Later}" Command="{Binding Source={RelativeSource AncestorType={x:Type viewmodels:ShowDetailViewModel}}, Path=AddToListenLaterCommand}" CommandParameter="{Binding}" WidthRequest="28"> diff --git a/src/Mobile/Resources/Strings/AppResource.Designer.cs b/src/Mobile/Resources/Strings/AppResource.Designer.cs index 1c5e6be..19619ea 100644 --- a/src/Mobile/Resources/Strings/AppResource.Designer.cs +++ b/src/Mobile/Resources/Strings/AppResource.Designer.cs @@ -221,7 +221,16 @@ namespace Microsoft.NetConf2021.Maui.Resources.Strings { return ResourceManager.GetString("See_All_Categories", resourceCulture); } } - + + /// + /// Looks up a localized string similar to Tap to listen later. + /// + internal static string Semantic_Description_Tap_Listen_Later { + get { + return ResourceManager.GetString("Semantic_Description_Tap_Listen_Later", resourceCulture); + } + } + /// /// Looks up a localized string similar to Tap to play or pause an episode. /// diff --git a/src/Mobile/Resources/Strings/AppResource.resx b/src/Mobile/Resources/Strings/AppResource.resx index 03e6fb3..dc360b3 100644 --- a/src/Mobile/Resources/Strings/AppResource.resx +++ b/src/Mobile/Resources/Strings/AppResource.resx @@ -171,6 +171,9 @@ See All Categories + + Tap to listen later + Tap to play or pause an episode diff --git a/src/Mobile/Services/SubscriptionsService.cs b/src/Mobile/Services/SubscriptionsService.cs index b76c5df..6fa7d35 100644 --- a/src/Mobile/Services/SubscriptionsService.cs +++ b/src/Mobile/Services/SubscriptionsService.cs @@ -21,9 +21,15 @@ public class SubscriptionsService if (IsSubscribed(show.Id)) { + SemanticScreenReader.Announce(string.Format("Unsubscribe to show {0}", show.Title)); await UnSubscribeFromShowAsync(show); return; } + else + { + SemanticScreenReader.Announce(string.Format("Subscribe to show {0}", show.Title)); + } + this.subscribedShows.Add(show); }