]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/java/com/stoutner/privacybrowser/helpers/SanitizeUrlHelper.kt
Update the file name when the URL changes in SaveDialog. https://redmine.stoutner...
[PrivacyBrowserAndroid.git] / app / src / main / java / com / stoutner / privacybrowser / helpers / SanitizeUrlHelper.kt
index 7e4ad981f017ede460e2628a9f728355a34d8f22..370eae96934a947958437df1e961e291e616ff6b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright ©2022 Soren Stoutner <soren@stoutner.com>.
+ * Copyright 2022 Soren Stoutner <soren@stoutner.com>.
  *
  * This file is part of Privacy Browser Android <https://www.stoutner.com/privacy-browser-android>.
  *
@@ -48,7 +48,8 @@ private val trackingQueriesList = listOf(
     "yclid="               // Yandex Click ID.
 )
 
-class SanitizeUrlHelper {
+object SanitizeUrlHelper {
+    @JvmStatic
     fun sanitizeTrackingQueries(inputUrl: String): String {
         // Make a copy of the input URL so that it can be modified.
         var url = inputUrl
@@ -69,6 +70,7 @@ class SanitizeUrlHelper {
         return url
     }
 
+    @JvmStatic
     fun sanitizeAmpRedirects(inputUrl: String): String {
         // Make a copy of the input URL so that it can be modified.
         var url = inputUrl
@@ -82,4 +84,4 @@ class SanitizeUrlHelper {
         // Return the sanitized URL.
         return url
     }
-}
\ No newline at end of file
+}