adding a crashfix at actionmenu item checking
This commit is contained in:
parent
e870e9b2f4
commit
4f3de9a9ad
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ class SongAdapter(activity: SimpleActivity, var songs: ArrayList<Song>, val list
|
|||
|
||||
override fun prepareActionMode(menu: Menu) {
|
||||
menu.apply {
|
||||
findItem(R.id.cab_rename).isVisible = isOneItemSelected() && !getSelectedSongs().first().path.startsWith("content://")
|
||||
findItem(R.id.cab_rename).isVisible = isOneItemSelected() && getSelectedSongs().firstOrNull()?.path?.startsWith("content://") != true
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue