From d51e8bc626288923602c1bc2c6a6c0e8173c47fe Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Sat, 24 Jul 2021 10:32:00 -0400 Subject: [PATCH] close #1739 --- .../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 a5d2024b..e80e5ed1 100644 --- a/app/src/main/java/awais/instagrabber/fragments/settings/DownloadsPreferencesFragment.java +++ b/app/src/main/java/awais/instagrabber/fragments/settings/DownloadsPreferencesFragment.java @@ -105,7 +105,7 @@ public class DownloadsPreferencesFragment extends BasePreferencesFragment { String path; try { path = URLDecoder.decode(data.getData().toString(), StandardCharsets.UTF_8.name()); - } catch (UnsupportedEncodingException e) { + } catch (Exception e) { path = data.getData().toString(); } dirPreference.setSummary(path);