LeoColman / Petals

🌻 The Open Source app Petals aims to help its users to either quit weed, reduce usage or simply know how much they're using.
GNU Affero General Public License v3.0
80 stars 31 forks source link

When hiding use blocks, the state is briefly visible after the app is opened. #581

Closed LeoColman closed 3 months ago

LeoColman commented 3 months ago

Continuation of #460 #577

The default state should probably start at censored before the variable is retrieved from DataStore, or else it will be visible for a brief moment

LeoColman commented 3 months ago

Problem seems to be that the entire isCensored boolean is inverted

https://github.com/LeoColman/Petals/blob/7161a3d3b5a774788e71ce3183a27b0952b35404/app/src/main/kotlin/br/com/colman/petals/use/UseBlock.kt#L161