X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserAndroid.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fstoutner%2Fprivacybrowser%2Fasynctasks%2FGetUrlSize.java;h=b34f62e885937bf33ab2d81c2669ce0e29ed9a8f;hp=fa4d3742ac046c0a5f19035d45002ed2b1bac84a;hb=ad779ddf7db19cfb9de2f727d1a772850e161acb;hpb=8f7e9b7db429568e26f00bc2eef88402d722bec7 diff --git a/app/src/main/java/com/stoutner/privacybrowser/asynctasks/GetUrlSize.java b/app/src/main/java/com/stoutner/privacybrowser/asynctasks/GetUrlSize.java index fa4d3742..b34f62e8 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/asynctasks/GetUrlSize.java +++ b/app/src/main/java/com/stoutner/privacybrowser/asynctasks/GetUrlSize.java @@ -124,7 +124,7 @@ public class GetUrlSize extends AsyncTask { // Check the response code. if (responseCode >= 400) { // The response code is an error message. // Set the formatted file size to indicate a bad URL. - formattedFileSize = context.getString(R.string.bad_url); + formattedFileSize = context.getString(R.string.invalid_url); } else { // The response code is not an error message. // Get the content length header. String contentLengthString = httpURLConnection.getHeaderField("Content-Length"); @@ -147,7 +147,7 @@ public class GetUrlSize extends AsyncTask { } } catch (IOException exception) { // Set the formatted file size to indicate a bad URL. - formattedFileSize = context.getString(R.string.bad_url); + formattedFileSize = context.getString(R.string.invalid_url); } // Return the formatted file size string.