package Ġcom . k ish ore bab u . android . notes . util Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . text . format . Date Utils Ċ import Ġandroidx . annotation . Drawable Res Ċ import Ġandroidx . core . content . Context Compat Ċ import Ġandroidx . recyclerview . widget . Divider Item Decoration Ċ import Ġandroidx . recyclerview . widget . RecyclerView Ċ Ċ fun ĠLong . to Readable Date ( context : ĠContext ): ĠString Ġ{ ĊĠ Ġreturn ĠDate Utils ĊĠĠĠĠĠ Ġ. get Relative DateTime String ( context , Ġthis , ĠDate Utils . MINUTE _ IN _ M ILL IS , ĠDate Utils . WEEK _ IN _ M ILL IS , ĠDate Utils . FORMAT _ AB BRE V _ ALL ) ĊĠĠĠĠĠ Ġ. toString () Ċ } Ċ Ċ fun ĠRecyclerView . set Vertical Divider Decoration (@ Drawable Res Ġdrawable Res : ĠInt ) Ġ{ ĊĠ Ġval Ġdivider Ġ= ĠDiv ider Item Decoration ( ĊĠĠĠĠĠ Ġthis . context , ĊĠĠĠĠĠ ĠDiv ider Item Decoration . VERTICAL ĊĠ Ġ) ĊĠ Ġval Ġdrawable Ġ= ĠContext Compat . get Drawable ( ĊĠĠĠĠĠ Ġthis . context , ĊĠĠĠĠĠ Ġdrawable Res ĊĠ Ġ) ĊĠ Ġdrawable ?. let Ġ{ ĊĠĠĠ Ġdivider . set Drawable ( it ) ĊĠĠĠ Ġadd Item Decoration ( divider ) ĊĠ Ġ} Ċ }