[media.ccc.de] Add "recent" kiosk
This commit is contained in:
parent
90d3c9ced0
commit
1984436b41
3 changed files with 5 additions and 1 deletions
|
@ -179,7 +179,7 @@ dependencies {
|
||||||
|
|
||||||
// NewPipe dependencies
|
// NewPipe dependencies
|
||||||
// You can use a local version by uncommenting a few lines in settings.gradle
|
// You can use a local version by uncommenting a few lines in settings.gradle
|
||||||
implementation 'com.github.TeamNewPipe:NewPipeExtractor:b2837698f55296e00aeca5cb1847755dd1174af4'
|
implementation 'com.github.TeamNewPipe:NewPipeExtractor:674f2227f3a1ca11cbc9101a9d6211ad7babd42a'
|
||||||
implementation "com.github.TeamNewPipe:nanojson:1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751"
|
implementation "com.github.TeamNewPipe:nanojson:1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751"
|
||||||
|
|
||||||
implementation "org.jsoup:jsoup:1.13.1"
|
implementation "org.jsoup:jsoup:1.13.1"
|
||||||
|
|
|
@ -44,6 +44,8 @@ public final class KioskTranslator {
|
||||||
return c.getString(R.string.most_liked);
|
return c.getString(R.string.most_liked);
|
||||||
case "conferences":
|
case "conferences":
|
||||||
return c.getString(R.string.conferences);
|
return c.getString(R.string.conferences);
|
||||||
|
case "recent":
|
||||||
|
return c.getString(R.string.recent);
|
||||||
default:
|
default:
|
||||||
return kioskId;
|
return kioskId;
|
||||||
}
|
}
|
||||||
|
@ -59,6 +61,7 @@ public final class KioskTranslator {
|
||||||
case "Local":
|
case "Local":
|
||||||
return ThemeHelper.resolveResourceIdFromAttr(c, R.attr.ic_kiosk_local);
|
return ThemeHelper.resolveResourceIdFromAttr(c, R.attr.ic_kiosk_local);
|
||||||
case "Recently added":
|
case "Recently added":
|
||||||
|
case "recent":
|
||||||
return ThemeHelper.resolveResourceIdFromAttr(c, R.attr.ic_kiosk_recent);
|
return ThemeHelper.resolveResourceIdFromAttr(c, R.attr.ic_kiosk_recent);
|
||||||
case "Most liked":
|
case "Most liked":
|
||||||
return ThemeHelper.resolveResourceIdFromAttr(c, R.attr.ic_thumb_up);
|
return ThemeHelper.resolveResourceIdFromAttr(c, R.attr.ic_thumb_up);
|
||||||
|
|
|
@ -691,4 +691,5 @@
|
||||||
<string name="playlist_page_summary">Playlist page</string>
|
<string name="playlist_page_summary">Playlist page</string>
|
||||||
<string name="show_thumbnail_title">Show thumbnail</string>
|
<string name="show_thumbnail_title">Show thumbnail</string>
|
||||||
<string name="show_thumbnail_summary">Use thumbnail for both lock screen background and notifications</string>
|
<string name="show_thumbnail_summary">Use thumbnail for both lock screen background and notifications</string>
|
||||||
|
<string name="recent">Recent</string>
|
||||||
</resources>
|
</resources>
|
Loading…
Add table
Reference in a new issue