fix new tab assignments

This commit is contained in:
Fabian Freund
2026-05-26 13:42:16 +02:00
parent 481e991e97
commit 33fd8e65f1
3 changed files with 118 additions and 6 deletions
@@ -65,11 +65,17 @@ _buildSharingIntentTransformer(
final shortcutContextId = intent.action == 'android.intent.action.VIEW'
? intent.extra['pwa_context_id'] as String?
: null;
final shortcutContainerMode =
intent.extra['shortcut_container_mode'] as String?;
final hasShortcutContainerMetadata =
shortcutContextId != null || shortcutContainerMode != null;
final containerMode = intent.action == 'android.intent.action.VIEW'
? IntentContainerMode.fromWireValue(
intent.extra['shortcut_container_mode'] as String?,
contextId: shortcutContextId,
)
? hasShortcutContainerMetadata
? IntentContainerMode.fromWireValue(
shortcutContainerMode,
contextId: shortcutContextId,
)
: IntentContainerMode.unassigned
: IntentContainerMode.useSelected;
final allowed = await gatekeeper.shouldAllow(