package Ġcom . program mer gab ut . sol at ku y . data . local . dao Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . room . Dao Ċ import Ġandroidx . room . Insert Ċ import Ġandroidx . room . On Conflict Strategy Ċ import Ġandroidx . room . Query Ċ import Ġcom . program mer gab ut . sol at ku y . data . local . local entity . Ms Setting Ċ Ċ @ Dao Ċ interface ĠMs Setting Dao Ġ{ ĊĊĠĠĠ Ġ@ Query (" select Ġ* Ġfrom Ġms _ setting ") ĊĠĠĠ Ġfun Ġobserve Ms Setting (): ĠLive Data < Ms Setting > ĊĊĠĠĠ Ġ@ Query (" delete Ġfrom Ġms _ setting ") ĊĠĠĠ Ġsuspend Ġfun Ġdelete All () ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . IGNORE ) ĊĠĠĠ Ġsuspend Ġfun Ġinsert Ms Setting ( ms Setting : ĠMs Setting ) ĊĊĠĠĠ Ġ@ Query (" update Ġms _ setting Ġset Ġis Has Open App Ġ= Ġ: is Has Open Ġwhere Ġ` no ` Ġ= Ġ 1 ") ĊĠĠĠ Ġsuspend Ġfun Ġupdate Is Has Open App ( is Has Open : ĠBoolean ) Ċ Ċ }