removing a wrong menu from albums

This commit is contained in:
tibbi 2022-07-08 23:38:52 +02:00
parent 33be4cb97d
commit 5c1bb147f0
2 changed files with 1 additions and 2 deletions

View file

@ -64,7 +64,6 @@ class TracksActivity : SimpleActivity() {
playlist = Gson().fromJson<Playlist>(intent.getStringExtra(PLAYLIST), playlistType)
if (playlist != null) {
tracksType = TYPE_PLAYLIST
invalidateOptionsMenu()
}
val albumType = object : TypeToken<Album>() {}.type
@ -79,6 +78,7 @@ class TracksActivity : SimpleActivity() {
tracks_placeholder_2.beGone()
}
refreshMenuItems()
val titleToUse = playlist?.title ?: album?.title ?: folder ?: ""
tracks_toolbar.title = titleToUse.replace("<", "&lt;")

View file

@ -16,7 +16,6 @@
android:layout_height="?attr/actionBarSize"
android:background="@color/color_primary"
app:layout_scrollFlags="scroll|enterAlways"
app:menu="@menu/menu_playlist"
app:title="@string/artist"
app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" />