From f1022bb46a71ee8911c33d8a2ee9e2cb3dc18f42 Mon Sep 17 00:00:00 2001 From: TobiGr Date: Wed, 23 Dec 2020 00:09:50 +0100 Subject: [PATCH] [media.ccc.de] Add "recent" kiosk --- app/build.gradle | 2 +- app/src/main/java/org/schabi/newpipe/util/KioskTranslator.java | 3 +++ app/src/main/res/values/strings.xml | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 3ac8ff525dd..931a07b9b2a 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -179,7 +179,7 @@ dependencies { // NewPipe dependencies // You can use a local version by uncommenting a few lines in settings.gradle - implementation 'com.github.TeamNewPipe:NewPipeExtractor:85fa006214b003f21eacb76c445a167732f19981' + implementation 'com.github.TeamNewPipe:NewPipeExtractor:1db2fe41a54ae85765b6cfec72c7101df104d053' implementation "com.github.TeamNewPipe:nanojson:1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751" implementation "org.jsoup:jsoup:1.13.1" diff --git a/app/src/main/java/org/schabi/newpipe/util/KioskTranslator.java b/app/src/main/java/org/schabi/newpipe/util/KioskTranslator.java index ccd4d13fc78..c9b69e4d74e 100644 --- a/app/src/main/java/org/schabi/newpipe/util/KioskTranslator.java +++ b/app/src/main/java/org/schabi/newpipe/util/KioskTranslator.java @@ -44,6 +44,8 @@ public static String getTranslatedKioskName(final String kioskId, final Context return c.getString(R.string.most_liked); case "conferences": return c.getString(R.string.conferences); + case "recent": + return c.getString(R.string.recent); default: return kioskId; } @@ -59,6 +61,7 @@ public static int getKioskIcon(final String kioskId, final Context c) { case "Local": return ThemeHelper.resolveResourceIdFromAttr(c, R.attr.ic_kiosk_local); case "Recently added": + case "recent": return ThemeHelper.resolveResourceIdFromAttr(c, R.attr.ic_kiosk_recent); case "Most liked": return ThemeHelper.resolveResourceIdFromAttr(c, R.attr.ic_thumb_up); diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index ecb690044aa..afa6b1ccc96 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -689,4 +689,5 @@ Playlist page Show thumbnail Show thumbnail on lock screen as background and inside notifications + Recent