package Ġcom . phil pot . now playing history Ċ Ċ import Ġandroid . app . Application Ċ import Ġandroid . content . Context Ċ import Ġandroid . content . SharedPreferences Ċ import Ġcom . github . sal om on br ys . kode in .* Ċ import Ġcom . phil pot . now playing history . db . St or IO Sqlite Open Helper Ċ import Ġcom . phil pot . now playing history . db . dao . Album Info Dao Ċ import Ġcom . phil pot . now playing history . db . dao . Dao Cache Ċ import Ġcom . phil pot . now playing history . db . dao . History Dao Ċ import Ġcom . phil pot . now playing history . db . dao . Song Info Dao Ċ import Ġcom . phil pot . now playing history . db . manager . Song Album Manager Ċ import Ġcom . phil pot . now playing history . event . EventBus Ċ import Ġcom . phil pot . now playing history . event . NP EventBus Ċ import Ġcom . phil pot . now playing history . info . Album Art Cache Provider Ċ import Ġcom . phil pot . now playing history . info . Now Playing Art Provider Ċ import Ġcom . phil pot . now playing history . last fm . L fm Ċ import Ġcom . phil pot . now playing history . model . Album Info Ċ import Ġcom . phil pot . now playing history . model . Song Info Ċ import Ġcom . phil pot . now playing history . model . History Item Ċ import Ġcom . pus ht o refresh . stor io . sqlite . St or IO SQLite Ċ import Ġcom . squareup . leak can ary . Leak Can ary Ċ Ċ /** Ċ Ġ* ĠCreated Ġby Ġcol se Ġon Ġ 1 0 / 2 9 / 2 0 1 7 . Ċ Ġ*/ Ċ class ĠNow Playing History Application Ġ: ĠApplication (), ĠK ode in Aware Ġ{ ĊĊĠĠĠ Ġoverride Ġval Ġk ode in Ġby ĠK ode in . lazy Ġ{ ĊĊĠĠĠĠĠĠĠ Ġbind < St or IO SQLite . Low Level >() Ġwith Ġsingleton Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġinstance < St or IO Sqlite Open Helper >(). get St or IO (). low Level () ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġbind < Dao Cache >() Ġwith Ġprovider Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġinstance < St or IO Sqlite Open Helper >() ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġbind < St or IO Sqlite Open Helper >() Ġwith Ġsingleton Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval ĠretVal Ġ= ĠSt or IO Sqlite Open Helper ( this @ Now Playing History Application ) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠretVal . writable Database ĊĠĠĠĠĠĠĠĠĠĠĠ ĠretVal ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġbind < History Dao >() Ġwith Ġprovider Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġinstance < St or IO Sqlite Open Helper >(). get Dao For < History Item , ĠHistory Dao >( History Item :: class . java ) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġbind < Song Info Dao >() Ġwith Ġprovider Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġinstance < St or IO Sqlite Open Helper >(). get Dao For < Song Info , ĠSong Info Dao >( Song Info :: class . java ) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġbind < Album Info Dao >() Ġwith Ġprovider Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġinstance < St or IO Sqlite Open Helper >(). get Dao For < Album Info , ĠAlbum Info Dao >( Album Info :: class . java ) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġbind < EventBus >() Ġwith Ġsingleton Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠNP EventBus ( org . green robot . event bus . EventBus . getDefault ()) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġbind < Album Art Cache Provider >() Ġwith Ġsingleton Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠNow Playing Art Provider ( instance (), Ġinstance (), Ġapplication Context . cacheDir . absolute Path ) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġbind < Song Album Manager >() Ġwith Ġsingleton Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠSong Album Manager ( instance (), Ġinstance (), Ġinstance ()) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġbind < SharedPreferences >() Ġwith Ġsingleton Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġinstance < Context >(). get SharedPreferences ( getString ( R . string . app _ preferences _ file ), ĠContext . MODE _ PRIVATE ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate () Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate () ĊĊĠĠĠĠĠĠĠ Ġif Ġ( Leak Can ary . isIn Analyzer Process ( this )) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ ĠLe ak Can ary . install ( this ) ĊĊĠĠĠĠĠĠĠ ĠL fm . initialize ( this ) ĊĠĠĠ Ġ} Ċ }