You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
4.0 KiB

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <toolkit:Popup xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  4. x:Class="GMCabsDriverAssistantSolution.Views.AppPermissiontSetDialogPage"
  5. xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
  6. Size="380,380"
  7. Color="Transparent">
  8. <Frame BackgroundColor="White" CornerRadius="10">
  9. <StackLayout Orientation="Vertical">
  10. <StackLayout x:Name="PermissionAllocationLayout" VerticalOptions="StartAndExpand">
  11. <Label Text="To get reliable bookings notifications you need to change some settings for the Driver App"
  12. VerticalTextAlignment="Center"
  13. VerticalOptions="CenterAndExpand"
  14. HorizontalOptions="CenterAndExpand"
  15. FontSize="20"
  16. HorizontalTextAlignment="Center"
  17. FontFamily="Bold"/>
  18. <StackLayout VerticalOptions="EndAndExpand" Margin="10,2,0,0">
  19. <Button Text="Change" Clicked="Permission_Clicked" TextColor="White" FontSize="20" />
  20. </StackLayout>
  21. </StackLayout>
  22. <StackLayout x:Name="PermissionLayout" VerticalOptions="StartAndExpand" Orientation="Vertical">
  23. <StackLayout x:Name="LocationLayout" Orientation="Vertical" Margin="0,-40,0,0">
  24. <Label Text="Location Tracking needs to be set to always"
  25. VerticalTextAlignment="Center"
  26. VerticalOptions="CenterAndExpand"
  27. HorizontalOptions="CenterAndExpand"
  28. FontSize="20"
  29. HorizontalTextAlignment="Center"
  30. FontFamily="Bold"/>
  31. <StackLayout VerticalOptions="EndAndExpand" Margin="10,2,0,0">
  32. <Button Text="Change" Clicked="Location_Clicked" TextColor="White" FontSize="20" />
  33. </StackLayout>
  34. </StackLayout>
  35. <StackLayout x:Name="BatteyOptimisedLayout" Orientation="Vertical" Margin="0,10,0,0">
  36. <Label Text="You need to turn off battery optimisation for the Driver App"
  37. VerticalTextAlignment="Center"
  38. VerticalOptions="CenterAndExpand"
  39. HorizontalOptions="CenterAndExpand"
  40. FontSize="20"
  41. HorizontalTextAlignment="Center"
  42. FontFamily="Bold"/>
  43. <StackLayout VerticalOptions="EndAndExpand" Margin="10,2,0,0">
  44. <!--<Button Text="Change" Clicked="Batteryoptimisation_Clicked" TextColor="White" FontSize="20" />-->
  45. <Button Text="Change" Clicked="Batteryoptimisation_Clicked" TextColor="White" FontSize="20"></Button>
  46. </StackLayout>
  47. </StackLayout>
  48. </StackLayout>
  49. <StackLayout x:Name="LocationWarningLayout" VerticalOptions="StartAndExpand">
  50. <Label Text="If you ignore location tracking then bookings will be disabled"
  51. VerticalTextAlignment="Center"
  52. VerticalOptions="CenterAndExpand"
  53. HorizontalOptions="CenterAndExpand"
  54. FontSize="20"
  55. HorizontalTextAlignment="Center"
  56. FontFamily="Bold"/>
  57. <StackLayout VerticalOptions="EndAndExpand" Margin="10,2,0,0">
  58. <Button Text="Change" Clicked="ChangeLocation_Clicked" TextColor="White" FontSize="20" />
  59. </StackLayout>
  60. </StackLayout>
  61. <StackLayout VerticalOptions="EndAndExpand" Margin="10,10,0,10">
  62. <Button Text="Ignore" Clicked="Ignore_Clicked" TextColor="White" FontSize="20" />
  63. </StackLayout>
  64. </StackLayout>
  65. </Frame>
  66. </toolkit:Popup>