mirror of
https://github.com/lichess-org/mobile.git
synced 2026-05-26 13:50:52 +00:00
Only support game urls with orientation as deep link
This commit is contained in:
@@ -64,8 +64,9 @@
|
||||
<data android:pathPattern="/broadcast/.*/.*/........" />
|
||||
<data android:pathPattern="/broadcast/.*/.*/......../........" />
|
||||
|
||||
<!-- Either game or challenge -->
|
||||
<data android:pathPattern="/........" />
|
||||
<!-- Game with pov -->
|
||||
<data android:pathPattern="/......../black" />
|
||||
<data android:pathPattern="/......../white" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<!-- Don't delete the meta-data below.
|
||||
|
||||
@@ -135,7 +135,7 @@ List<Widget> makeFinishedGameShareMenuItemButtons(
|
||||
MenuItemButton(
|
||||
leadingIcon: const PlatformShareIcon(),
|
||||
onPressed: () {
|
||||
launchShareDialog(context, uri: lichessUri('/$gameId'));
|
||||
launchShareDialog(context, uri: lichessUri('/$gameId/${orientation.name}'));
|
||||
},
|
||||
child: Text(context.l10n.mobileShareGameURL),
|
||||
),
|
||||
|
||||
@@ -309,7 +309,7 @@ class GameContextMenu extends ConsumerWidget {
|
||||
if (!isTabletOrLarger(context)) ...[
|
||||
BottomSheetContextMenuAction(
|
||||
onPressed: () {
|
||||
launchShareDialog(context, uri: lichessUri('/${game.id}'));
|
||||
launchShareDialog(context, uri: lichessUri('/${game.id}/${orientation.name}'));
|
||||
},
|
||||
icon:
|
||||
Theme.of(context).platform == TargetPlatform.iOS
|
||||
|
||||
Reference in New Issue
Block a user