1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-30 11:45:36 +00:00

Simplification

This commit is contained in:
M66B 2022-10-27 16:55:25 +02:00
parent 21b8ba0a2a
commit fad1a1a6e8

View file

@ -330,7 +330,7 @@ public class UriHelper {
Uri result = (s > 0 ? Uri.parse(path.substring(s + 1)) : null);
changed = (result != null);
url = (result == null ? uri : result);
} else if (uri.getHost() != null && uri.getHost().equals("go.dhlparcel.nl")) {
} else if ("go.dhlparcel.nl".equals(uri.getHost())) {
try {
String path = uri.getPath();
int s = path.lastIndexOf('/');