mirror of
https://github.com/ente-io/ente.git
synced 2025-08-12 09:10:25 +00:00
[mob] Disable auto-cast for iOS (#1633)
## Description ## Tests Tested on sim
This commit is contained in:
commit
a39e6b54cc
@ -108,7 +108,7 @@
|
|||||||
<key>NSBonjourServices</key>
|
<key>NSBonjourServices</key>
|
||||||
<array>
|
<array>
|
||||||
<string>_googlecast._tcp</string>
|
<string>_googlecast._tcp</string>
|
||||||
<string>F5BCEC64._googlecast._tcp</string>
|
<string>_F5BCEC64._googlecast._tcp</string>
|
||||||
</array>
|
</array>
|
||||||
|
|
||||||
<key>NSLocalNetworkUsageDescription</key>
|
<key>NSLocalNetworkUsageDescription</key>
|
||||||
|
@ -738,6 +738,9 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
|
|||||||
|
|
||||||
// stop any existing cast session
|
// stop any existing cast session
|
||||||
gw.revokeAllTokens().ignore();
|
gw.revokeAllTokens().ignore();
|
||||||
|
if (!Platform.isAndroid) {
|
||||||
|
await _pairWithPin(gw, '');
|
||||||
|
} else {
|
||||||
final result = await showDialog<ButtonAction?>(
|
final result = await showDialog<ButtonAction?>(
|
||||||
context: context,
|
context: context,
|
||||||
barrierDismissible: true,
|
barrierDismissible: true,
|
||||||
@ -768,6 +771,7 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
|
|||||||
await _pairWithPin(gw, '');
|
await _pairWithPin(gw, '');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Future<void> _pairWithPin(CastGateway gw, String code) async {
|
Future<void> _pairWithPin(CastGateway gw, String code) async {
|
||||||
await showTextInputDialog(
|
await showTextInputDialog(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user