Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WoC] Services - Create a SharedPreferences service #177

Closed
Thesmader opened this issue Dec 17, 2020 · 2 comments · Fixed by #180 or #186
Closed

[WoC] Services - Create a SharedPreferences service #177

Thesmader opened this issue Dec 17, 2020 · 2 comments · Fixed by #180 or #186
Labels
WoC2020 Issues related to Winter of Code 2020

Comments

@Thesmader
Copy link
Member

Minimum requirements for the service:

  1. A function to return an instance of SharedPreferences.
  2. A function(private to the service) to save different types of content to disk using SharedPreferences.

Reference

@Thesmader Thesmader added the WoC2020 Issues related to Winter of Code 2020 label Dec 17, 2020
@Chinmay-KB
Copy link
Member

To add to what @Thesmader has mentioned, make sure every fetch operation you make is checked with containsKey

@Chinmay-KB
Copy link
Member

Sometimes we need to clear a bunch of keys, like

  • Deleting theory and practical sections while resetting section
  • Reset all data while logging out
    Have functions in this service that can achieve the said functionality in one click, currently all the keys that need to be deleted are called individually and deleted

@Thesmader Thesmader linked a pull request Dec 21, 2020 that will close this issue
@DesignrKnight DesignrKnight linked a pull request Jan 16, 2021 that will close this issue
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WoC2020 Issues related to Winter of Code 2020
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants