From 40907a8bc118c7ac381ad0c2f840ee1f8b5da85a Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Wed, 7 Jul 2021 17:23:58 -0400 Subject: [PATCH] close #1522 --- .../fragments/settings/DownloadsPreferencesFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/awais/instagrabber/fragments/settings/DownloadsPreferencesFragment.java b/app/src/main/java/awais/instagrabber/fragments/settings/DownloadsPreferencesFragment.java index d79974c5..1ff802fd 100644 --- a/app/src/main/java/awais/instagrabber/fragments/settings/DownloadsPreferencesFragment.java +++ b/app/src/main/java/awais/instagrabber/fragments/settings/DownloadsPreferencesFragment.java @@ -94,7 +94,7 @@ public class DownloadsPreferencesFragment extends BasePreferencesFragment { Utils.setupSelectedDir(context, data); String path; try { - path = URLDecoder.decode(data.getData().toString(), StandardCharsets.UTF_8.toString()); + path = URLDecoder.decode(data.getData().toString(), StandardCharsets.UTF_8.name()); } catch (UnsupportedEncodingException e) { path = data.getData().toString(); }