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

Corrections after 1.8.1 release #474

Merged
merged 16 commits into from
Dec 26, 2024
Prev Previous commit
Next Next commit
Add missing method in Config
Reco1I committed Dec 17, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 01d047f64628b21b3f6b0ab816b3a8b8e3032bca
8 changes: 8 additions & 0 deletions src/ru/nsu/ccfit/zuev/osu/Config.java
Original file line number Diff line number Diff line change
@@ -843,6 +843,14 @@ public static void setInt(String key, int value) {
sharedPreferences.edit().putInt(key, value).commit();
}

public static long getLong(String key, long defaultValue) {
return sharedPreferences.getLong(key, defaultValue);
}

public static void setLong(String key, long value) {
sharedPreferences.edit().putLong(key, value).commit();
}

public static String getString(String key, String defaultValue) {
return sharedPreferences.getString(key, defaultValue);
}