1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-07-25 05:12:58 +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,7 +269,12 @@ class FeedFragment : BaseStateFragment<FeedState>() {
override fun onDestroyOptionsMenu() {
super.onDestroyOptionsMenu()
activity?.supportActionBar?.subtitle = null
if (
(groupName != "") &&
(activity?.supportActionBar?.subtitle == groupName)
) {
activity?.supportActionBar?.subtitle = null
}
}
override fun onDestroy() {
@ -281,7 +286,13 @@ class FeedFragment : BaseStateFragment<FeedState>() {
}
super.onDestroy()
activity?.supportActionBar?.subtitle = null
if (
(groupName != "") &&
(activity?.supportActionBar?.subtitle == groupName)
) {
activity?.supportActionBar?.subtitle = null
}
}
override fun onDestroyView() {

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