package Ġcom . native bo ys . password . manager . ui . adapters . thumb nails Ċ Ċ import Ġandroid . view . View Ċ import Ġcom . bump tech . glide . G lide Ċ import Ġcom . bump tech . glide . load . engine . Disk Cache Strategy Ċ import Ġcom . bump tech . glide . load . resource . bitmap . Center Crop Ċ import Ġcom . google . android . material . image view . Shape able ImageView Ċ import Ġcom . native bo ys . password . manager . R Ċ import Ġcom . native bo ys . password . manager . data . Thumbnail Dto Ċ import Ġcom . native bo ys . u ikit . rv . RecyclerView Holder Ċ Ċ class ĠThumb nails ViewHolder ( item View : ĠView ) Ġ: ĠRecyclerView Holder < Thumbnail Dto >( item View ) Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġthumbnail Holder Ġ= ĠitemView . findViewById < Shape able ImageView >( R . id . thumbnail _ holder ) ĊĠĠĠ Ġprivate Ġval Ġforeground View Ġ= ĠitemView . findViewById < Shape able ImageView >( R . id . foreground _ view ) ĊĊĠĠĠ Ġoverride Ġfun Ġbind ( model : ĠThumb nail Dto ) Ġ{ ĊĊĠĠĠĠĠĠĠ ĠG lide . with ( item View . context ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. load ( model . url ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. transform ( Center Crop ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. disk Cache Strategy ( Disk Cache Strategy . ALL ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. into ( thumbnail Holder ) ĊĊĠĠĠĠĠĠĠ Ġforeground View . visibility Ġ= Ġif Ġ( model . type Ġ== Ġ 2 ) ĠView . VISIBLE Ġelse ĠView . IN VISIBLE ĊĊĠĠĠĠĠĠĠ ĠG lide . with ( item View . context ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. load ( R . drawable . ic _ baseline _ check _ 2 4 ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. into ( foreground View ) ĊĊĠĠĠ Ġ} Ċ Ċ }