Use DataStore instead of Shared Preferences
Introduction
You may come across a requirement in your app to store some configuration (not that big to use Room).
For example, the previous UI mode - (Dark/Light)
You might come across Shared Preferences for this requirement. Shared Preferences are ...
blog.dhina17.dev3 min read