package Ġcom . ct ech . eat y . ui . product detail . epic Ċ Ċ import Ġcom . ct ech . eat y . annotation . MOB ILE Ċ import Ġcom . ct ech . eat y . base . redux . Action Ċ import Ġcom . ct ech . eat y . base . redux . Epic Ċ import Ġcom . ct ech . eat y . base . redux . Store Ċ import Ġcom . ct ech . eat y . repository . AppSettings Manager Ċ import Ġcom . ct ech . eat y . ui . app . AppState Ċ import Ġcom . ct ech . eat y . ui . product detail . action . CHECK _ DATA _ SA VER Ċ import Ġcom . ct ech . eat y . ui . product detail . result . Check Data Saver Result Ċ import Ġcom . ct ech . eat y . ui . product detail . state . Product Detail State Ċ import Ġio . reactivex . Observable Ċ import Ġio . reactivex . subjects . Behavior Subject Ċ import Ġio . reactivex . subjects . Publish Subject Ċ Ċ class ĠCheck Data Saver Epic ( ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġapp Store : ĠStore < AppState >, ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġsettings Manager : ĠApp Settings Manager ) Ġ: ĠE pic < Product Detail State > Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġapply ( action : ĠPublish Subject < Action >, Ġstate : ĠBehavior Subject < Product Detail State >): ĠObservable < Check Data Saver Result > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġaction ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. of Type ( CHECK _ DATA _ SA VER :: class . java ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. map Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠCheck Data Saver Result ( is Save Mode Enabled ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġis Save Mode Enabled (): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġapp State Ġ= Ġapp Store . getState () ĊĠĠĠĠĠĠĠ Ġreturn Ġapp State . connection Type Ġ== ĠM OB ILE Ġ&& Ġsettings Manager . is Data Server Enabled () ĊĠĠĠ Ġ} Ċ Ċ }