fix new tab assignments

This commit is contained in:
Fabian Freund committed 2026-05-26 13:42:16 +02:00
1 parent 481e991e97
commit 33fd8e65f1
3 files changed
+118 -6

No files matched your search

@@ -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(