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);