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:
parent
279caac915
commit
fd09e6147f
@ -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() {
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user