paris changes

This commit is contained in:
GabrielBRDeveloper 2023-12-15 11:12:48 -04:00
parent 102361174a
commit ab37cb571d

View file

@ -32,7 +32,6 @@ public class GlobalConfig {
return (T) value; return (T) value;
} }
//Need synchronized why SharedPreferences don't support aysnc write
public static synchronized <T extends Serializable> void set(Key<T> key, T value) { public static synchronized <T extends Serializable> void set(Key<T> key, T value) {
if (value instanceof String) { if (value instanceof String) {
data.edit().putString(key.name, (String) value).apply(); data.edit().putString(key.name, (String) value).apply();