From 4b6264de6f19d61c8d81f8cfd3903d00e86291ff Mon Sep 17 00:00:00 2001 From: tobigr Date: Fri, 9 Oct 2026 12:45:52 +0200 Subject: [PATCH] Improve chapter title length and alignment Use SPDX and REUSE compatible license header --- .../schabi/newpipe/views/ChaptersSeekBar.java | 17 ++--------------- app/src/main/res/layout/player.xml | 10 ++++++---- 2 files changed, 8 insertions(+), 19 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/views/ChaptersSeekBar.java b/app/src/main/java/org/schabi/newpipe/views/ChaptersSeekBar.java index 20d2e57a3..3c3a61ebb 100644 --- a/app/src/main/java/org/schabi/newpipe/views/ChaptersSeekBar.java +++ b/app/src/main/java/org/schabi/newpipe/views/ChaptersSeekBar.java @@ -1,19 +1,6 @@ /* - * Copyright (C) NewPipe Contributors - * ChaptersSeekBar.java is part of NewPipe. - * - * NewPipe is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * NewPipe is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with NewPipe. If not, see . + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later */ package org.schabi.newpipe.views; diff --git a/app/src/main/res/layout/player.xml b/app/src/main/res/layout/player.xml index 9c6ae0a40..c7cac3e80 100644 --- a/app/src/main/res/layout/player.xml +++ b/app/src/main/res/layout/player.xml @@ -421,15 +421,17 @@ android:layout_height="wrap_content" android:background="#60000000" android:ellipsize="end" - android:maxLines="1" + android:maxWidth="250dp" + android:maxLines="2" android:paddingLeft="5dp" android:paddingRight="5dp" android:paddingBottom="2dp" + android:gravity="center" android:textColor="@android:color/white" android:textSize="12sp" android:visibility="gone" tools:ignore="RtlHardcoded" - tools:text="Introduction" + tools:text="This is a very long chapter title filled with needlessly little information despite its length" tools:visibility="visible" /> + tools:visibility="visible" + tools:ignore="ContentDescription" /> @@ -483,7 +486,6 @@ tools:ignore="HardcodedText" tools:text="1:06:29" /> -