removing a wrong menu from albums
This commit is contained in:
parent
33be4cb97d
commit
5c1bb147f0
2 changed files with 1 additions and 2 deletions
|
@ -64,7 +64,6 @@ class TracksActivity : SimpleActivity() {
|
||||||
playlist = Gson().fromJson<Playlist>(intent.getStringExtra(PLAYLIST), playlistType)
|
playlist = Gson().fromJson<Playlist>(intent.getStringExtra(PLAYLIST), playlistType)
|
||||||
if (playlist != null) {
|
if (playlist != null) {
|
||||||
tracksType = TYPE_PLAYLIST
|
tracksType = TYPE_PLAYLIST
|
||||||
invalidateOptionsMenu()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
val albumType = object : TypeToken<Album>() {}.type
|
val albumType = object : TypeToken<Album>() {}.type
|
||||||
|
@ -79,6 +78,7 @@ class TracksActivity : SimpleActivity() {
|
||||||
tracks_placeholder_2.beGone()
|
tracks_placeholder_2.beGone()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
refreshMenuItems()
|
||||||
val titleToUse = playlist?.title ?: album?.title ?: folder ?: ""
|
val titleToUse = playlist?.title ?: album?.title ?: folder ?: ""
|
||||||
tracks_toolbar.title = titleToUse.replace("<", "<")
|
tracks_toolbar.title = titleToUse.replace("<", "<")
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
android:layout_height="?attr/actionBarSize"
|
android:layout_height="?attr/actionBarSize"
|
||||||
android:background="@color/color_primary"
|
android:background="@color/color_primary"
|
||||||
app:layout_scrollFlags="scroll|enterAlways"
|
app:layout_scrollFlags="scroll|enterAlways"
|
||||||
app:menu="@menu/menu_playlist"
|
|
||||||
app:title="@string/artist"
|
app:title="@string/artist"
|
||||||
app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" />
|
app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" />
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue