Skip to content

Commit bd1fba3

Browse files
committed
Add another method to initialize with custom preference mode
1 parent 3c5b1dc commit bd1fba3

File tree

5 files changed

+34
-15
lines changed

5 files changed

+34
-15
lines changed

.idea/compiler.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 22 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations.xml

Lines changed: 0 additions & 12 deletions
This file was deleted.

fastsave/src/main/java/com/appizona/yehiahd/fastsave/FastSave.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ public static void init(Context context) {
2424
mSharedPreferences = PreferenceManager.getDefaultSharedPreferences(context);
2525
}
2626

27+
public static void init(SharedPreferences sharedPreferences) {
28+
mSharedPreferences = sharedPreferences;
29+
}
30+
2731
public static FastSave getInstance() {
2832
if (instance == null) {
2933
validateInitialization();

0 commit comments

Comments
 (0)