Skip to content

Commit

Permalink
fix: ios
Browse files Browse the repository at this point in the history
  • Loading branch information
yayacat committed Sep 15, 2024
1 parent 7042221 commit 4751e3a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/route/settings/content/location.dart
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ class _SettingsLocationViewState extends State<SettingsLocationView> with Widget
),
),
),
if (autoStartPermission != null)
if (autoStartPermission != null && Platform.isAndroid)
Visibility(
visible: isAutoLocatingEnabled && !autoStartPermission!,
maintainAnimation: true,
Expand Down Expand Up @@ -564,7 +564,7 @@ class _SettingsLocationViewState extends State<SettingsLocationView> with Widget
),
),
),
if (batteryOptimizationPermission != null)
if (batteryOptimizationPermission != null && Platform.isAndroid)
Visibility(
visible: isAutoLocatingEnabled && !batteryOptimizationPermission!,
maintainAnimation: true,
Expand Down Expand Up @@ -679,7 +679,7 @@ class _SettingsLocationViewState extends State<SettingsLocationView> with Widget
});
},
),
if (autoStartPermission != null)
if (autoStartPermission != null && Platform.isAndroid)
Visibility(
visible: !isAutoLocatingEnabled && city != null && town != null && !autoStartPermission!,
maintainAnimation: true,
Expand Down Expand Up @@ -715,7 +715,7 @@ class _SettingsLocationViewState extends State<SettingsLocationView> with Widget
),
),
),
if (batteryOptimizationPermission != null)
if (batteryOptimizationPermission != null && Platform.isAndroid)
Visibility(
visible: !isAutoLocatingEnabled && city != null && town != null && !batteryOptimizationPermission!,
maintainAnimation: true,
Expand Down

0 comments on commit 4751e3a

Please sign in to comment.