2
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-08-22 18:19:15 +00:00

# Fixed Feed Group Titlebar

- use default fragment_feed_title for TabName
- only clear FeedFragment bar subtitle when it matches the groupName to clear.
This commit is contained in:
Diana Victoria Furrer 2025-05-31 01:30:49 +02:00
parent 279caac915
commit fd09e6147f
2 changed files with 14 additions and 3 deletions

View File

@ -269,8 +269,13 @@ class FeedFragment : BaseStateFragment<FeedState>() {
override fun onDestroyOptionsMenu() {
super.onDestroyOptionsMenu()
if (
(groupName != "") &&
(activity?.supportActionBar?.subtitle == groupName)
) {
activity?.supportActionBar?.subtitle = null
}
}
override fun onDestroy() {
disposables.dispose()
@ -281,8 +286,14 @@ class FeedFragment : BaseStateFragment<FeedState>() {
}
super.onDestroy()
if (
(groupName != "") &&
(activity?.supportActionBar?.subtitle == groupName)
) {
activity?.supportActionBar?.subtitle = null
}
}
override fun onDestroyView() {
// Ensure that all animations are canceled

View File

@ -687,7 +687,7 @@ public abstract class Tab {
@Override
public String getTabName(final Context context) {
return feedGroupName;
return context.getString(R.string.fragment_feed_title);
}
@DrawableRes