Skip to content
This repository has been archived by the owner on Dec 28, 2022. It is now read-only.

Commit

Permalink
Fixed a crash due non-optional Playlist being null
Browse files Browse the repository at this point in the history
  • Loading branch information
timusus committed Feb 12, 2019
1 parent 24223d6 commit cbd80fd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class DrawerFragment : BaseFragment(), DrawerView, View.OnCreateContextMenuListe

if (savedInstanceState != null) {
selectedDrawerParent = savedInstanceState.getInt(STATE_SELECTED_DRAWER_PARENT, DrawerParent.Type.LIBRARY)
currentSelectedPlaylist = savedInstanceState.get(STATE_SELECTED_PLAYLIST) as Playlist
currentSelectedPlaylist = savedInstanceState.get(STATE_SELECTED_PLAYLIST) as Playlist?
}

backgroundPlaceholder = ContextCompat.getDrawable(context!!, R.drawable.ic_drawer_header_placeholder)
Expand Down

0 comments on commit cbd80fd

Please sign in to comment.