package Ġio . material . md ts . ui Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . View Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġandroidx . navigation . fragment . Fragment Navigator Extras Ċ import Ġandroidx . navigation . fragment . find Nav Controller Ċ import Ġio . material . md ts . R Ċ import Ġio . material . md ts . model . play lists Ċ import Ġkotlinx . android . synt hetic . main . fragment _ play lists .* Ċ Ċ class ĠPlay lists Fragment Ġ: ĠFragment ( R . layout . fragment _ play lists ) Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġadapter Ġ= ĠAlbum Adapter Ġ{ ĠitemView , Ġalbum Ġ-> ĊĠĠĠĠĠĠĠ Ġval Ġdirections Ġ= ĠMy Library Fragment Directions . my Library To Playlist ( id Ġ= Ġalbum . id ) ĊĠĠĠĠĠĠĠ Ġval Ġextras Ġ= ĠFragment Navigator Extras ( item View Ġto ĠitemView . transition Name ) ĊĠĠĠĠĠĠĠ Ġfind Nav Controller (). navigate ( directions , Ġextras ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon View Created ( view : ĠView , ĠsavedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on View Created ( view , ĠsavedInstanceState ) ĊĠĠĠĠĠĠĠ Ġre cyclerView . adapter Ġ= Ġadapter ĊĠĠĠĠĠĠĠ Ġadapter . submit List ( play lists ) ĊĠĠĠĠĠĠĠ Ġval Ġspace Ġ= Ġresources . get Dimension Pixel Size ( R . dim en . spacing _ xs ) ĊĠĠĠĠĠĠĠ Ġval Ġspace Item Decoration Ġ= ĠSpace Item Decoration ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġleft Ġ= Ġspace , Ġtop Ġ= Ġspace ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġre cyclerView . addItem Decoration ( space Item Decoration ) ĊĠĠĠ Ġ} Ċ } Ċ