Skip to content

Commit

Permalink
Fix build use IllegalArgumentException instead of Unsupported Encodin…
Browse files Browse the repository at this point in the history
…g Exception
  • Loading branch information
whistlingwoods authored Oct 4, 2024
1 parent f686a31 commit 8384a38
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@

import java.io.File;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URI;

public class DownloadSettingsFragment extends BasePreferenceFragment {
Expand Down Expand Up @@ -125,7 +124,7 @@ private void showPathInSummary(final String prefKey, @StringRes final int defaul

try {
rawUri = decodeUrlUtf8(rawUri);
} catch (final UnsupportedEncodingException e) {
} catch (final IllegalArgumentException e) {
// nothing to do
}

Expand Down

0 comments on commit 8384a38

Please sign in to comment.