From 45bacec5eb02ac1b92d2d397e95d86a3d54b3167 Mon Sep 17 00:00:00 2001 From: Romain Hunault Date: Wed, 3 Aug 2022 11:52:42 +0200 Subject: [PATCH 1/5] Move the spot url to murena domain name --- .../features/suggestions/SearchSuggestionUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/foundation/e/blisslauncher/features/suggestions/SearchSuggestionUtil.java b/app/src/main/java/foundation/e/blisslauncher/features/suggestions/SearchSuggestionUtil.java index 68a7eb9f35..86a4177834 100644 --- a/app/src/main/java/foundation/e/blisslauncher/features/suggestions/SearchSuggestionUtil.java +++ b/app/src/main/java/foundation/e/blisslauncher/features/suggestions/SearchSuggestionUtil.java @@ -30,10 +30,10 @@ public class SearchSuggestionUtil { } else if (defaultSearchEngine.contains("duckduckgo")) { return Uri.parse("https://duckduckgo.com/?q=" + query); } else { - return Uri.parse("https://spot.ecloud.global/?q=" + query); + return Uri.parse("https://spot.murena.io/?q=" + query); } } else { - return Uri.parse("https://spot.ecloud.global/?q=" + query); + return Uri.parse("https://spot.murena.io/?q=" + query); } } -- GitLab From 8ca8fe6b3a7aab64bc40fcede5ac71a5adc4971b Mon Sep 17 00:00:00 2001 From: Romain Hunault Date: Mon, 7 Nov 2022 15:57:37 +0000 Subject: [PATCH 2/5] Extract spot url in a constant --- .../features/suggestions/SearchSuggestionUtil.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/foundation/e/blisslauncher/features/suggestions/SearchSuggestionUtil.java b/app/src/main/java/foundation/e/blisslauncher/features/suggestions/SearchSuggestionUtil.java index ada8981505..89a11fe1f9 100644 --- a/app/src/main/java/foundation/e/blisslauncher/features/suggestions/SearchSuggestionUtil.java +++ b/app/src/main/java/foundation/e/blisslauncher/features/suggestions/SearchSuggestionUtil.java @@ -5,8 +5,11 @@ import android.content.Context; import android.database.Cursor; import android.net.Uri; + public class SearchSuggestionUtil { + private static final String SPOT_URL = "https://spot.murena.io/"; + public SuggestionProvider getSuggestionProvider(Context context) { String defaultSearchEngine = defaultSearchEngine(context); if (defaultSearchEngine != null && defaultSearchEngine.length() > 0) { @@ -30,10 +33,10 @@ public class SearchSuggestionUtil { } else if (defaultSearchEngine.contains("duckduckgo")) { return Uri.parse("https://duckduckgo.com/?q=" + query); } else { - return Uri.parse("https://spot.murena.io/?q=" + query); + return Uri.parse(SPOT_URL + "?=" + query); } } else { - return Uri.parse("https://spot.murena.io/?q=" + query); + return Uri.parse(SPOT_URL + "?=" + query); } } -- GitLab From 9647eea2db248d0c558cbc1423699a23bf9fe9fa Mon Sep 17 00:00:00 2001 From: Fahim Salam Chowdhury Date: Tue, 8 Nov 2022 13:21:56 +0000 Subject: [PATCH 3/5] Apply 1 suggestion(s) to 1 file(s) --- .../features/suggestions/SearchSuggestionUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/foundation/e/blisslauncher/features/suggestions/SearchSuggestionUtil.java b/app/src/main/java/foundation/e/blisslauncher/features/suggestions/SearchSuggestionUtil.java index 89a11fe1f9..c466bc85e1 100644 --- a/app/src/main/java/foundation/e/blisslauncher/features/suggestions/SearchSuggestionUtil.java +++ b/app/src/main/java/foundation/e/blisslauncher/features/suggestions/SearchSuggestionUtil.java @@ -33,7 +33,7 @@ public class SearchSuggestionUtil { } else if (defaultSearchEngine.contains("duckduckgo")) { return Uri.parse("https://duckduckgo.com/?q=" + query); } else { - return Uri.parse(SPOT_URL + "?=" + query); + return Uri.parse(SPOT_URL + "?q=" + query); } } else { return Uri.parse(SPOT_URL + "?=" + query); -- GitLab From 79c62df023e4953ae82180127c7326a45e18ad81 Mon Sep 17 00:00:00 2001 From: Fahim Salam Chowdhury Date: Tue, 8 Nov 2022 13:22:03 +0000 Subject: [PATCH 4/5] Apply 1 suggestion(s) to 1 file(s) --- .../features/suggestions/SearchSuggestionUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/foundation/e/blisslauncher/features/suggestions/SearchSuggestionUtil.java b/app/src/main/java/foundation/e/blisslauncher/features/suggestions/SearchSuggestionUtil.java index c466bc85e1..1e221bc89b 100644 --- a/app/src/main/java/foundation/e/blisslauncher/features/suggestions/SearchSuggestionUtil.java +++ b/app/src/main/java/foundation/e/blisslauncher/features/suggestions/SearchSuggestionUtil.java @@ -36,7 +36,7 @@ public class SearchSuggestionUtil { return Uri.parse(SPOT_URL + "?q=" + query); } } else { - return Uri.parse(SPOT_URL + "?=" + query); + return Uri.parse(SPOT_URL + "?q=" + query); } } -- GitLab From 8007ac579e5e07e981c878a14f0e93e6791d3c69 Mon Sep 17 00:00:00 2001 From: Yash-Garg Date: Wed, 9 Nov 2022 10:59:34 +0530 Subject: [PATCH 5/5] fix spotless warnings --- .../blisslauncher/features/suggestions/SearchSuggestionUtil.java | 1 - 1 file changed, 1 deletion(-) diff --git a/app/src/main/java/foundation/e/blisslauncher/features/suggestions/SearchSuggestionUtil.java b/app/src/main/java/foundation/e/blisslauncher/features/suggestions/SearchSuggestionUtil.java index 1e221bc89b..fe41821476 100644 --- a/app/src/main/java/foundation/e/blisslauncher/features/suggestions/SearchSuggestionUtil.java +++ b/app/src/main/java/foundation/e/blisslauncher/features/suggestions/SearchSuggestionUtil.java @@ -5,7 +5,6 @@ import android.content.Context; import android.database.Cursor; import android.net.Uri; - public class SearchSuggestionUtil { private static final String SPOT_URL = "https://spot.murena.io/"; -- GitLab