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:
parent
279caac915
commit
fd09e6147f
@ -269,7 +269,12 @@ class FeedFragment : BaseStateFragment<FeedState>() {
|
|||||||
|
|
||||||
override fun onDestroyOptionsMenu() {
|
override fun onDestroyOptionsMenu() {
|
||||||
super.onDestroyOptionsMenu()
|
super.onDestroyOptionsMenu()
|
||||||
activity?.supportActionBar?.subtitle = null
|
if (
|
||||||
|
(groupName != "") &&
|
||||||
|
(activity?.supportActionBar?.subtitle == groupName)
|
||||||
|
) {
|
||||||
|
activity?.supportActionBar?.subtitle = null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onDestroy() {
|
override fun onDestroy() {
|
||||||
@ -281,7 +286,13 @@ class FeedFragment : BaseStateFragment<FeedState>() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
super.onDestroy()
|
super.onDestroy()
|
||||||
activity?.supportActionBar?.subtitle = null
|
|
||||||
|
if (
|
||||||
|
(groupName != "") &&
|
||||||
|
(activity?.supportActionBar?.subtitle == groupName)
|
||||||
|
) {
|
||||||
|
activity?.supportActionBar?.subtitle = null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onDestroyView() {
|
override fun onDestroyView() {
|
||||||
|
@ -687,7 +687,7 @@ public abstract class Tab {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getTabName(final Context context) {
|
public String getTabName(final Context context) {
|
||||||
return feedGroupName;
|
return context.getString(R.string.fragment_feed_title);
|
||||||
}
|
}
|
||||||
|
|
||||||
@DrawableRes
|
@DrawableRes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user