From 0a3b11617fb280e1414e610d83024deafa44a604 Mon Sep 17 00:00:00 2001 From: evermind Date: Mon, 7 Nov 2022 14:16:02 +0100 Subject: [PATCH] searchfilters: make ServiceHelper aware of rumble and bitchute strings --- .../schabi/newpipe/util/ServiceHelper.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/app/src/main/java/org/schabi/newpipe/util/ServiceHelper.java b/app/src/main/java/org/schabi/newpipe/util/ServiceHelper.java index 5c02f1552..8d9917ba5 100644 --- a/app/src/main/java/org/schabi/newpipe/util/ServiceHelper.java +++ b/app/src/main/java/org/schabi/newpipe/util/ServiceHelper.java @@ -183,6 +183,26 @@ public final class ServiceHelper { R.string.search_filters_yes); LIBRARY_STRING_ID_TO_RES_ID_MAP.put(LibraryStringIds.SEARCH_FILTERS_YOUTUBE_MUSIC, R.string.search_filters_youtube_music); + LIBRARY_STRING_ID_TO_RES_ID_MAP.put(LibraryStringIds.SEARCH_FILTERS_SHORT, + R.string.search_filters_short /* Short */); + LIBRARY_STRING_ID_TO_RES_ID_MAP.put(LibraryStringIds.SEARCH_FILTERS_LONG, + R.string.search_filters_long /* Long */); + LIBRARY_STRING_ID_TO_RES_ID_MAP.put(LibraryStringIds.SEARCH_FILTERS_RUMBLES, + R.string.search_filters_rumbles /* Rumbles */); + LIBRARY_STRING_ID_TO_RES_ID_MAP.put(LibraryStringIds.SEARCH_FILTERS_MOST_RECENT, + R.string.search_filters_most_recent /* Most recent */); + LIBRARY_STRING_ID_TO_RES_ID_MAP.put(LibraryStringIds.SEARCH_FILTERS_SHORT_0_5M, + R.string.search_filters_short_0_5_min /* Short (0-5m) */); + LIBRARY_STRING_ID_TO_RES_ID_MAP.put(LibraryStringIds.SEARCH_FILTERS_MEDIUM_5_20M, + R.string.search_filters_medium_5_20_min /* Medium (5-20m) */); + LIBRARY_STRING_ID_TO_RES_ID_MAP.put(LibraryStringIds.SEARCH_FILTERS_LONG_20M_PLUS, + R.string.search_filters_long_20_min_plus /* Long (20m+) */); + LIBRARY_STRING_ID_TO_RES_ID_MAP.put(LibraryStringIds.SEARCH_FILTERS_FEATURE_45M_PLUS, + R.string.search_filters_feature_45_min_plus /* Feature (45m+) */); + LIBRARY_STRING_ID_TO_RES_ID_MAP.put(LibraryStringIds.SEARCH_FILTERS_NEWEST_FIRST, + R.string.search_filters_newest_first /* Newest First */); + LIBRARY_STRING_ID_TO_RES_ID_MAP.put(LibraryStringIds.SEARCH_FILTERS_OLDEST_FIRST, + R.string.search_filters_oldest_first /* Oldest First */); } private ServiceHelper() {