mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-10-11 02:08:44 +02:00
fix(extensions): default verification browser to in-app first
Prefer the in-app browser for signed-session verification challenges, normalize invalid saved modes to the new default, and keep the help dialog modal until the user explicitly dismisses it.
This commit is contained in:
1 parent
0be6455d46
commit
3278e32711
5 files changed
+10
-7
No files matched your search
@@ -35,7 +35,7 @@ bool _containsHttpStatusCode(String message, String code) {
|
||||
|
||||
Future<bool> openPendingExtensionVerification(
|
||||
String extensionId, {
|
||||
String browserMode = 'external_first',
|
||||
String browserMode = 'in_app_first',
|
||||
void Function(Uri authUri)? onAuthUri,
|
||||
}) async {
|
||||
final normalizedExtensionId = extensionId.trim();
|
||||
@@ -79,7 +79,7 @@ Future<bool> openPendingExtensionVerification(
|
||||
Timer? scheduleExtensionVerificationHelpDialog(
|
||||
String extensionId,
|
||||
Uri? authUri, {
|
||||
String browserMode = 'external_first',
|
||||
String browserMode = 'in_app_first',
|
||||
Duration delay = const Duration(seconds: 20),
|
||||
}) {
|
||||
final normalizedExtensionId = extensionId.trim();
|
||||
@@ -99,7 +99,7 @@ Timer? scheduleExtensionVerificationHelpDialog(
|
||||
Future<bool> showExtensionVerificationHelpDialog(
|
||||
String extensionId,
|
||||
Uri authUri, {
|
||||
String browserMode = 'external_first',
|
||||
String browserMode = 'in_app_first',
|
||||
bool immediateFailure = false,
|
||||
}) async {
|
||||
final context = AppNavigationService.rootNavigatorKey.currentContext;
|
||||
@@ -119,6 +119,7 @@ Future<bool> showExtensionVerificationHelpDialog(
|
||||
await showDialog<void>(
|
||||
context: context,
|
||||
useRootNavigator: true,
|
||||
barrierDismissible: false,
|
||||
builder: (dialogContext) {
|
||||
final dialogL10n = dialogContext.l10n;
|
||||
return AlertDialog(
|
||||
|
||||
Reference in new issue
Block a user