From 5268982baac969d44b04f4ae9e143b1f533fc1bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Mielcarek?= Date: Thu, 17 Nov 2022 12:49:57 +0100 Subject: [PATCH] =?UTF-8?q?Tentative=20ajout=20image=20=C3=A0=20la=20playl?= =?UTF-8?q?ist.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/dafl_project_flutter/lib/api/in_app_browser.dart | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Sources/dafl_project_flutter/lib/api/in_app_browser.dart b/Sources/dafl_project_flutter/lib/api/in_app_browser.dart index c682e60..02d3706 100644 --- a/Sources/dafl_project_flutter/lib/api/in_app_browser.dart +++ b/Sources/dafl_project_flutter/lib/api/in_app_browser.dart @@ -6,7 +6,7 @@ import '../main.dart'; class MyInAppBrowser extends InAppBrowser { var options = InAppBrowserClassOptions( crossPlatform: - InAppBrowserOptions(hideUrlBar: true, hideToolbarTop: true), + InAppBrowserOptions(hideUrlBar: true, hideToolbarTop: true), inAppWebViewGroupOptions: InAppWebViewGroupOptions( crossPlatform: InAppWebViewOptions(javaScriptEnabled: true))); @@ -27,9 +27,6 @@ class MyInAppBrowser extends InAppBrowser { if (url!.origin + url.path == MyApp.api.redirectUri) { try { await MyApp.api.requestUserAuthorization(url); - var id = await MyApp.api.getCurrentlyPlayingTrack(); - await MyApp.api - .addToPLaylist(id); //TODO : end the adding of playlist image } on ApiException { // TODO : add notification to show that an error occured