Last active
August 12, 2018 10:01
-
-
Save krupalshah/ed30f8c451d6a38f9929f7351fb7a61f to your computer and use it in GitHub Desktop.
helper for shared prefs - java version - Refactoring Step 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void setStringPreference(Context context, String key, String value) { | |
edit(context, (editor) -> editor.putString(key, value)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment