Update the names of YT kiosks

This commit is contained in:
Stypox 2025-07-31 23:10:47 +02:00
parent d96c0aebb1
commit b7b836e941
No known key found for this signature in database
GPG key ID: 4BDF1B40A49FDD23
3 changed files with 10 additions and 9 deletions

View file

@ -53,13 +53,13 @@ public final class KioskTranslator {
case "Radio":
return c.getString(R.string.radio);
case "trending_gaming":
return c.getString(R.string.gaming);
return c.getString(R.string.trending_gaming);
case "trending_music":
return c.getString(R.string.music);
return c.getString(R.string.trending_music);
case "trending_movies_and_shows":
return c.getString(R.string.movies);
return c.getString(R.string.trending_movies);
case "trending_podcasts_episodes":
return c.getString(R.string.podcasts);
return c.getString(R.string.trending_podcasts);
default:
return kioskId;
}

View file

@ -388,9 +388,10 @@ public final class Localization {
* {@code parsed != null} and the relevant setting is enabled, {@code textual} will
* be appended to the returned string for debugging purposes.
*/
@Nullable
public static String relativeTimeOrTextual(@Nullable final Context context,
@Nullable final DateWrapper parsed,
final String textual) {
@Nullable final String textual) {
if (parsed == null) {
return textual;
} else if (DEBUG && context != null && PreferenceManager